/*
 * MyFloat Portal - Admin Mobile Responsive CSS
 * Optimized for mobile-first admin panel usage
 */

/* General Mobile Admin Styles */
.customer-matrix-admin,
.customer-list-admin,
.pod-ownership-admin {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.navigation-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a5f, #2c5282);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1e3a5f;
}

.stat-content p {
    margin: 0;
    color: #666;
    font-weight: 500;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 18px 18px 0 0;
}

.card-header h3 {
    margin: 0;
    color: #1e3a5f;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Table Base Styles */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #1e3a5f;
    padding: 12px;
}

.table td {
    padding: 12px;
    vertical-align: middle;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile Responsive Styles - Tablet */
@media (max-width: 768px) {
    .customer-matrix-admin,
    .customer-list-admin,
    .pod-ownership-admin {
        padding: 15px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-title {
        font-size: 1.2rem;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-btn {
        justify-content: center;
        padding: 12px 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    /* Mobile-friendly table styling */
    .table-responsive {
        border: none;
        font-size: 0.9rem;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 15px;
        border-radius: 10px;
        padding: 15px;
        background: #f8f9fa;
    }
    
    .table tbody td {
        display: block;
        text-align: left;
        border: none;
        padding: 8px 0;
        position: relative;
        padding-left: 35%;
    }
    
    .table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 30%;
        font-weight: 600;
        color: #1e3a5f;
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-buttons .btn {
        text-align: center;
        justify-content: center;
    }
    
    .mobile-btn-stack {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    
    .mobile-btn-stack .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    /* Search form mobile layout */
    .search-form .row {
        margin: 0;
    }
    
    .search-form .col-md-4,
    .search-form .col-md-3,
    .search-form .col-md-2 {
        padding: 5px;
        margin-bottom: 10px;
    }
}

/* Mobile Responsive Styles - Phone */
@media (max-width: 480px) {
    .customer-matrix-admin,
    .customer-list-admin,
    .pod-ownership-admin {
        padding: 10px;
    }
    
    .navigation-banner {
        padding: 15px;
        border-radius: 12px;
    }
    
    .card {
        border-radius: 12px;
    }
    
    .card-header {
        border-radius: 12px 12px 0 0;
    }
    
    .stat-card {
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stat-icon {
        margin: 0 auto;
    }
    
    .nav-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .search-form .col-md-4,
    .search-form .col-md-3,
    .search-form .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .table tbody td {
        padding-left: 0;
        text-align: center;
    }
    
    .table tbody td:before {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 5px;
        text-align: center;
        background: #1e3a5f;
        color: white;
        padding: 5px;
        border-radius: 5px;
        font-size: 0.8rem;
    }
}

/* Risk and Status Elements */
.risk-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.risk-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #1e3a5f;
}

.risk-label {
    font-weight: 500;
    color: #1e3a5f;
}

.risk-count {
    background: #1e3a5f;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .risk-breakdown {
        flex-direction: column;
        gap: 10px;
    }
    
    .risk-item {
        justify-content: space-between;
    }
}

/* Quick Actions Panel Improvements */
.quick-actions-panel {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.quick-actions-panel h3 {
    color: #1e3a5f;
    font-weight: 600;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .quick-actions-panel {
        padding: 15px;
        border-radius: 12px;
    }
}