/* Main styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eef2f6;
}

.dashboard-body {
    background: linear-gradient(135deg, #eef2f6 0%, #f8fbff 100%);
    min-height: 100vh;
}

/* Sidebar styles */
.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Card styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.hero-card {
    background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
}

.profile-hero {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
}

.feedback-hero {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}

.call-hero {
    background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
}

.history-hero {
    background: linear-gradient(135deg, #1d976c 0%, #2da67b 100%);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.hero-title {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    opacity: 0.85;
}

.hero-pill {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.alert-modern {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    font-weight: 500;
}

.password-hint {
    padding: 1rem;
    border-radius: 1rem;
    background: #fff7ed;
    color: #b45309;
    font-weight: 500;
}

.rating-row .progress {
    height: 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.rating-row .rating-label {
    width: 65px;
    font-weight: 600;
    color: #6b7280;
}

.rating-row .rating-label i {
    color: #f7c948;
}

.rating-row .rating-count {
    width: 40px;
    text-align: right;
    font-weight: 600;
}

.rating-bar {
    background: linear-gradient(90deg, #fbbf24, #f97316);
    border-radius: 999px;
}

.feedback-highlight {
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.rating-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
}

.rating-pill i {
    color: inherit;
}

.rating-5 { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.rating-4 { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.rating-3 { background: rgba(234, 179, 8, 0.2); color: #b45309; }
.rating-2 { background: rgba(248, 113, 113, 0.2); color: #b91c1c; }
.rating-1 { background: rgba(248, 113, 113, 0.2); color: #991b1b; }

.call-highlight {
    border: 1px solid #eef2ff;
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.call-insight {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: #eef2ff;
    color: #312e81;
    font-weight: 500;
}

.stat-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.action-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.soft-card {
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.table-modern thead th {
    border-top: none;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.table-modern tbody tr {
    border-radius: 0.75rem;
}

.table-modern tbody tr td {
    vertical-align: middle;
}

.status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-open {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-in_progress {
    background: rgba(255, 193, 7, 0.15);
    color: #b08900;
}

.status-resolved {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.status-escalated {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.status-primary {
    background: rgba(13, 110, 253, 0.12);
    color: #0a58ca;
}

.status-success {
    background: rgba(25, 135, 84, 0.12);
    color: #0f5132;
}

.status-warning {
    background: rgba(255, 193, 7, 0.18);
    color: #7f4e00;
}

.status-info {
    background: rgba(13, 202, 240, 0.18);
    color: #0b7285;
}

.status-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #842029;
}

.status-secondary {
    background: rgba(108, 117, 125, 0.18);
    color: #383e44;
}

.status-dark {
    background: rgba(33, 37, 41, 0.2);
    color: #111315;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #4f46e5;
    position: absolute;
    left: -2px;
    top: 4px;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.list-snapshot .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    border: none;
    background: transparent;
    font-weight: 500;
}

.list-snapshot .list-group-item + .list-group-item {
    border-top: 1px solid #f1f5f9;
}

.recent-call-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f8fafc;
    margin-bottom: 0.75rem;
}

.recent-call-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    font-size: 1.2rem;
}

/* Table styles */
.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    color: #495057;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Progress bar styles */
.progress {
    height: 0.5rem;
}

/* Rating stars */
.bi-star-fill {
    margin-right: 0.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flex-grow-1 {
        margin-left: 0 !important;
    }
    
    .position-fixed {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
    }
}
