:root {
    --dashboard-bg: #f8f9ff;
    --departments-bg: #f8f9ff;
    --complaints-bg: #f8f9ff;
    --view-bg: #f8f9ff;
    --create-bg: #f8f9ff;
    --create-user-bg: #f8f9ff;
    --edit-user-bg: #f8f9ff;
    --users-bg: #f8f9ff;
    --edit-bg: #f8f9ff;
    --reports-bg: #f8f9ff;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --danger-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --info-gradient: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.dark-mode {
    --dashboard-bg: #121826;
    --departments-bg: #121826;
    --complaints-bg: #121826;
    --view-bg: #121826;
    --create-bg: #121826;
    --create-user-bg: #121826;
    --edit-user-bg: #121826;
    --users-bg: #121826;
    --edit-bg: #121826;
    --reports-bg: #121826;
    --card-bg: #1a2035;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.content-wrapper {
    background: var(--dashboard-bg);
    padding: 20px;
}

.content-header {
    padding: 0 0 20px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.content-header h1 {
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin: 0;
}

.page-description,
.welcome-text {
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 8px;
}

.dark-mode .page-description,
.dark-mode .welcome-text {
    color: #a0aec0;
}

.stats-container {
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
}

.dark-mode .stat-card {
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.total-card::before { background: var(--primary-gradient); }
.satisfied-card::before { background: var(--success-gradient); }
.responding-card::before { background: var(--warning-gradient); }
.escalated-card::before { background: var(--danger-gradient); }
.resolved-card::before { background: var(--success-gradient); }
.pending-card::before { background: var(--warning-gradient); }
.not-responding-card::before { background: var(--danger-gradient); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: white;
}

.total-icon { background: var(--primary-gradient); }
.satisfied-icon { background: var(--success-gradient); }
.responding-icon { background: var(--warning-gradient); }
.escalated-icon { background: var(--danger-gradient); }
.resolved-icon { background: var(--success-gradient); }
.pending-icon { background: var(--warning-gradient); }
.not-responding-icon { background: var(--danger-gradient); }

.stat-title {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .stat-title {
    color: #a0aec0;
}

.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 5px;
    color: #2d3748;
}

.dark-mode .stat-number {
    color: #e2e8f0;
}

.stat-trend {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }

.progress-container {
    margin-top: 15px;
}

.chart-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-top: 25px;
    border: 1px solid rgba(0,0,0,0.03);
}

.dark-mode .chart-container {
    border: 1px solid rgba(255,255,255,0.05);
}

.chart-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.chart-title {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.dark-mode .chart-title {
    color: #e2e8f0;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

.chart-btn {
    background: rgba(37, 117, 252, 0.1);
    border: none;
    color: #2575fc;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode .chart-btn {
    background: rgba(106, 17, 203, 0.2);
    color: #a78bfa;
}

.chart-btn:hover {
    background: rgba(37, 117, 252, 0.2);
    transform: translateY(-2px);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.action-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.dark-mode .action-card {
    border: 1px solid rgba(255,255,255,0.05);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
    color: white;
    background: var(--primary-gradient);
}

.action-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.dark-mode .action-title {
    color: #e2e8f0;
}

.action-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.dark-mode .action-desc {
    color: #a0aec0;
}

.btn-export {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-left: 10px;
    margin-top: 10px;
}

.table {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background: rgba(37, 117, 252, 0.05);
    border: none;
    font-weight: 700;
    color: #2d3748;
    padding: 15px 20px;
}

.dark-mode .table thead th {
    background: rgba(106, 17, 203, 0.1);
    color: #e2e8f0;
}

.table tbody td {
    padding: 15px 20px;
    vertical-align: middle;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #4a5568;
}

.dark-mode .table tbody td {
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #a0aec0;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-text {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 8px;
}

.dark-mode .stat-text {
    color: #a0aec0;
}

.total-icon { background: var(--primary-gradient); }
.resolved-icon { background: var(--success-gradient); }
.pending-icon { background: var(--warning-gradient); }
.escalated-icon { background: var(--danger-gradient); }
.in-progress-icon { background: var(--info-gradient); }

.filter-section {
    background: rgba(37, 117, 252, 0.03);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(37, 117, 252, 0.1);
}

.dark-mode .filter-section {
    background: rgba(106, 17, 203, 0.05);
    border: 1px solid rgba(106, 17, 203, 0.1);
}

.filter-title {
    font-weight: 700;
    color: #2575fc;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.dark-mode .filter-title {
    color: #a78bfa;
}

.filter-title i {
    margin-right: 10px;
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .export-buttons {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.card,
.stat-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(37, 117, 252, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
    margin-right: 10px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(17, 153, 142, 0.4);
}

.btn-warning {
    background: var(--warning-gradient);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 5px;
}

.btn-danger {
    background: var(--danger-gradient);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-info {
    background: var(--info-gradient);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.bg-success {
    background: var(--success-gradient);
}

.bg-warning {
    background: var(--warning-gradient);
}

.bg-danger {
    background: var(--danger-gradient);
}

.bg-info {
    background: var(--info-gradient);
}

.badge-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-success {
    background: var(--success-gradient);
}

.badge-warning {
    background: var(--warning-gradient);
}

.badge-danger {
    background: var(--danger-gradient);
}

.badge-info {
    background: var(--info-gradient);
}

.badge-anonymous {
    background: var(--warning-gradient);
}

.badge-non-anonymous {
    background: var(--info-gradient);
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-admin {
    background: var(--danger-gradient);
    color: white;
}

.role-dept-head {
    background: var(--warning-gradient);
    color: white;
}

.role-student {
    background: var(--info-gradient);
    color: white;
}

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(37, 117, 252, 0.03);
}

.file-upload:hover {
    border-color: #2575fc;
    background: rgba(37, 117, 252, 0.08);
}

.file-upload i {
    font-size: 2.5rem;
    color: #a0aec0;
    margin-bottom: 15px;
}

.file-upload p {
    margin: 0;
    color: #718096;
    font-weight: 500;
}

.file-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.dark-mode .file-upload {
    border: 2px dashed #4a5568;
    background: rgba(106, 17, 203, 0.03);
}

.dark-mode .file-upload:hover {
    border-color: #6a11cb;
    background: rgba(106, 17, 203, 0.08);
}

.dark-mode .file-upload i,
.dark-mode .file-upload p {
    color: #a0aec0;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.complaint-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
}

.dark-mode .stat-item {
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
    color: white;
}

.resolution-rate {
    text-align: center;
    padding: 20px;
    background: rgba(37, 117, 252, 0.05);
    border-radius: 12px;
    margin-top: 20px;
}

.dark-mode .resolution-rate {
    background: rgba(106, 17, 203, 0.1);
}

.rate-title {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 10px;
}

.dark-mode .rate-title {
    color: #a0aec0;
}

.rate-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.complaint-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(37, 117, 252, 0.05);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.dark-mode .meta-item {
    background: rgba(106, 17, 203, 0.1);
}

.meta-label {
    font-weight: 600;
    color: #4a5568;
    margin-right: 5px;
}

.dark-mode .meta-label {
    color: #a0aec0;
}

.meta-value {
    color: #2d3748;
}

.dark-mode .meta-value {
    color: #e2e8f0;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dark-mode .card-header {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-back {
    background: rgba(108, 117, 125, 0.1);
    border: none;
    color: #6c757d;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dark-mode .btn-back {
    background: rgba(108, 117, 125, 0.2);
    color: #a0aec0;
}

.btn-back:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
}

.card-body {
    padding: 25px;
}

.detail-row {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .detail-row {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.dark-mode .detail-label {
    color: #a0aec0;
}

.detail-label i {
    margin-right: 10px;
    color: #2575fc;
}

.detail-value {
    color: #2d3748;
    line-height: 1.6;
}

.dark-mode .detail-value {
    color: #e2e8f0;
}

.attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.attachment-item {
    background: rgba(37, 117, 252, 0.05);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.dark-mode .attachment-item {
    background: rgba(106, 17, 203, 0.1);
    border: 1px solid rgba(255,255,255,0.05);
}

.attachment-item:hover {
    background: rgba(37, 117, 252, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.attachment-image {
    max-width: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.attachment-link {
    display: flex;
    align-items: center;
    color: #2575fc;
    text-decoration: none;
    font-weight: 500;
}

.dark-mode .attachment-link {
    color: #a78bfa;
}

.attachment-link i {
    margin-right: 8px;
}

.chat-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .chat-section {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.chat-section h5 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.dark-mode .chat-section h5 {
    color: #e2e8f0;
}

.chat-section h5 i {
    margin-right: 10px;
    color: #2575fc;
}

.chat-box {
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .chat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.message:last-child {
    margin-bottom: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.message-sender {
    font-weight: 600;
    color: #2d3748;
}

.dark-mode .message-sender {
    color: #e2e8f0;
}

.message-time {
    font-size: 0.8rem;
    color: #718096;
}

.dark-mode .message-time {
    color: #a0aec0;
}

.message-content {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    max-width: 80%;
    word-wrap: break-word;
}

.dark-mode .message-content {
    background: #2d3748;
}

.message.student {
    align-items: flex-start;
}

.message.student .message-content {
    background: rgba(16, 185, 129, 0.1);
    border-top-left-radius: 0;
}

.dark-mode .message.student .message-content {
    background: rgba(16, 185, 129, 0.15);
}

.message.dept-head {
    align-items: flex-end;
}

.message.dept-head .message-content {
    background: rgba(37, 117, 252, 0.1);
    border-top-right-radius: 0;
}

.dark-mode .message.dept-head .message-content {
    background: rgba(106, 17, 203, 0.2);
}

.reply-form {
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
}

.dark-mode .reply-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.dark-mode .form-label {
    color: #e2e8f0;
}

.form-control {
    border-radius: 12px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: #2d3748;
}

.dark-mode .form-control {
    border: 2px solid #2d3748;
    color: #e2e8f0;
}

.form-control:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

.dark-mode .form-control::placeholder {
    color: #718096;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.form-check-label {
    font-weight: 500;
    color: #4a5568;
}

.dark-mode .form-check-label {
    color: #a0aec0;
}

.no-messages {
    text-align: center;
    padding: 30px;
    color: #718096;
}

.dark-mode .no-messages {
    color: #a0aec0;
}

.no-messages i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #cbd5e0;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(37, 117, 252, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.dark-mode .student-info {
    background: rgba(106, 17, 203, 0.1);
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(37, 117, 252, 0.2);
}

.student-details h6 {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #2d3748;
}

.dark-mode .student-details h6 {
    color: #e2e8f0;
}

.student-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
}

.dark-mode .student-details p {
    color: #a0aec0;
}

.user-icon {
    background: rgba(37, 117, 252, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.5rem;
    color: #2575fc;
}

.dark-mode .user-icon {
    background: rgba(106, 17, 203, 0.2);
    color: #a78bfa;
}

.user-info {
    background: rgba(37, 117, 252, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(37, 117, 252, 0.1);
}

.dark-mode .user-info {
    background: rgba(106, 17, 203, 0.1);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.user-info h5 {
    margin: 0 0 10px 0;
    color: #2575fc;
    font-weight: 600;
}

.dark-mode .user-info h5 {
    color: #a78bfa;
}

.user-info p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.dark-mode .user-info p {
    color: #a0aec0;
}

.role-info {
    background: rgba(37, 117, 252, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 117, 252, 0.1);
}

.dark-mode .role-info {
    background: rgba(106, 17, 203, 0.1);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.role-info h5 {
    margin: 0 0 10px 0;
    color: #2575fc;
    font-weight: 600;
}

.dark-mode .role-info h5 {
    color: #a78bfa;
}

.role-info p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dark-mode .role-info p {
    color: #a0aec0;
}

.dept-info {
    background: rgba(37, 117, 252, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(37, 117, 252, 0.1);
}

.dark-mode .dept-info {
    background: rgba(106, 17, 203, 0.1);
    border: 1px solid rgba(106, 17, 203, 0.2);
}

.dept-info h5 {
    margin: 0 0 10px 0;
    color: #2575fc;
    font-weight: 600;
}

.dark-mode .dept-info h5 {
    color: #a78bfa;
}

.dept-info p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
}

.dark-mode .dept-info p {
    color: #a0aec0;
}

.department-icon {
    background: rgba(37, 117, 252, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.5rem;
    color: #2575fc;
}

.dark-mode .department-icon {
    background: rgba(106, 17, 203, 0.2);
    color: #a78bfa;
}

select.form-control {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 48px;
    line-height: 48px;
}

.dark-mode select.form-control {
    min-height: 48px;
    line-height: 48px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #718096;
}

.dark-mode .progress-label {
    color: #a0aec0;
}

.progress-bar-container {
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.dark-mode .progress-bar-container {
    background: rgba(255,255,255,0.05);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.progress-total { background: var(--primary-gradient); }
.progress-resolved { background: var(--success-gradient); }
.progress-not-responding { background: var(--warning-gradient); }
.progress-escalated { background: var(--danger-gradient); }

.search-container {
    max-width: 300px;
    position: relative;
}

.search-input {
    border-radius: 50px;
    padding: 10px 20px 10px 40px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.dark-mode .search-input {
    border: 2px solid #2d3748;
    background: var(--card-bg);
    color: #e2e8f0;
}

.search-input:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.dark-mode .no-results {
    color: #a0aec0;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.pagination {
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.pagination .page-link {
    color: #2575fc;
}

.dark-mode .pagination .page-link {
    color: #a78bfa;
}

.chat-box::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.dark-mode .chat-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.card:first-child { animation-delay: 0.1s; }
.card:last-child { animation-delay: 0.2s; }

@media (max-width: 768px) {
    .content-header h1 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .summary-stats {
        grid-template-columns: 1fr 1fr;
    }

    .export-buttons {
        flex-direction: column;
    }

    .btn-export {
        width: 100%;
        margin-left: 0;
    }

    .filter-section .row > div {
        margin-bottom: 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .complaint-stats {
        justify-content: center;
    }

    .complaint-meta {
        flex-direction: column;
        gap: 8px;
    }

    .message-content {
        max-width: 90%;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .attachments {
        flex-direction: column;
    }

    .search-container {
        max-width: 100%;
        width: 100%;
    }

    .btn-primary {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .summary-stats {
        grid-template-columns: 1fr;
    }
}