/* Call Center Complaint Management System - Modern Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

/* Login Page */
.login-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.login-logo p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.system-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.login-hint p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #334155;
}

.login-hint small {
    color: #64748b;
}

/* Navbar */
.navbar {
    background-color: #0f172a !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
}

/* Role Badges */
.badge-super-admin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1e1e1e !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    display: inline-flex;
    align-items: center;
}

.badge-admin {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

/* Avatar Circles */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.avatar-super {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    border: 2px solid #fef3c7;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.avatar-admin {
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
}

/* Metric / Stat Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.stat-icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard Table */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.table td {
    vertical-align: middle;
}

.cell-complaint {
    max-width: 250px;
}

.text-truncate-wide {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-actions {
    white-space: nowrap;
}

.col-actions .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.82rem;
    margin-right: 3px;
    border-radius: 6px;
}

.col-actions .dropdown {
    display: inline-block;
    margin-right: 3px;
}

.col-actions .dropdown-menu {
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Empty state */
.empty-state {
    padding: 40px;
}

.empty-state h5 {
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Print Styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    
    .no-print,
    .no-print * {
        display: none !important;
    }
    
    .print-content {
        margin: 0;
        padding: 0;
    }
    
    .print-header h1 {
        font-size: 1.8rem;
        color: #000;
    }
    
    .print-meta p {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .table {
        font-size: 0.85rem;
        width: 100%;
        border-collapse: collapse;
    }
    
    .table th,
    .table td {
        border: 1px solid #dee2e6;
        padding: 8px;
    }
    
    .table thead {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .table thead th {
        color: #000;
        font-weight: 700;
    }
    
    .print-footer {
        margin-top: 30px;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .card {
        border: none;
        box-shadow: none;
    }
    
    .badge {
        border: 1px solid #dee2e6;
        padding: 2px 6px;
    }
}

/* Page utilities */
.container-fluid.mt-4 {
    padding-left: 25px;
    padding-right: 25px;
}
