/* admin.css - Professional Admin Dashboard Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #1f2937;
    --light: #f8fafc;
    --text: #374151;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* Admin Login Styles */
.admin-login-body {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.85), rgba(59, 130, 246, 0.85)), 
                url('../img/terabg.png') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.admin-login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
}

.admin-login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.admin-logo i {
    font-size: 2rem;
}

.admin-login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.admin-login-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.admin-login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    background: none;
    border: none;
    padding: 5px;
}

.toggle-password:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.admin-login-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.admin-login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.admin-login-footer a:hover {
    text-decoration: underline;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 8px 16px;
    background: #f0f9ff;
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.8rem;
}

/* Admin Dashboard Styles */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    gap: 1rem;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
}

.admin-user-info i {
    font-size: 1.2rem;
    color: var(--primary);
}

.admin-user-info small {
    color: var(--text-light);
    font-weight: normal;
}

.admin-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--danger);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.admin-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.admin-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    overflow-y: auto;
    z-index: 999;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.menu-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.menu-item.active {
    background: var(--primary);
    color: white;
    border-right: 3px solid var(--primary-dark);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

.menu-item.public-portal {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    color: var(--secondary);
}

.admin-main {
    margin-left: 250px;
    margin-top: 70px;
    padding: 2rem;
    width: calc(100% - 250px);
    min-height: calc(100vh - 70px);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Flash Messages */
.admin-flash-messages {
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Dashboard Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.total { background: var(--primary); }
.stat-icon.today { background: var(--info); }
.stat-icon.pending { background: var(--warning); }
.stat-icon.progress { background: var(--info); }
.stat-icon.resolved { background: var(--secondary); }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
    transform: translateX(2px);
}

.card-content {
    padding: 1.5rem;
}

/* Reports List */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 3px solid var(--primary);
}

.report-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.report-type {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.report-type.fire { background: var(--danger); }
.report-type.medical { background: var(--info); }
.report-type.natural { background: var(--warning); }
.report-type.accident { background: var(--primary); }
.report-type.other { background: var(--text-light); }

.report-details {
    flex: 1;
}

.report-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.report-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-user {
    font-size: 0.8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-in_progress { background: #dbeafe; color: #1e40af; }
.status-resolved { background: #d1fae5; color: #065f46; }

/* Types Distribution */
.types-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.type-name {
    width: 120px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.type-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.type-progress {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.type-count {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Alert Form Styles */
.alert-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.alert-form.alert-info { border-left-color: var(--info); }
.alert-form.alert-warning { border-left-color: var(--warning); }
.alert-form.alert-danger { border-left-color: var(--danger); }

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 2rem 1rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    text-align: center;
}

.quick-action-btn:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-action-btn i {
    font-size: 2rem;
}

.quick-action-btn span {
    font-weight: 500;
}

/* Management Styles */
.management-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.admin-form {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
    text-align: right;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.table-container {
    overflow-x: auto;
}

.admins-table {
    width: 100%;
    border-collapse: collapse;
}

.admins-table th,
.admins-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admins-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-details {
    flex: 1;
}

.admin-name {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-username {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.admin-contact {
    margin-top: 4px;
}

.admin-contact small {
    display: block;
    color: var(--text-light);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.current-user-badge {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-left: 8px;
}

.role-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.role-super_admin { background: #fef3c7; color: #92400e; }
.role-radio_operator { background: #dbeafe; color: #1e40af; }
.role-mayor { background: #d1fae5; color: #065f46; }
.role-engineer { background: #e0e7ff; color: #3730a3; }
.role-brgy_admin { background: #fce7f3; color: #be185d; }
.role-mswdo { background: #f3e8ff; color: #7e22ce; }

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #f3f4f6; color: #6b7280; }

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 8px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-activate { background: #d1fae5; color: #065f46; }
.btn-deactivate { background: #fee2e2; color: #dc2626; }
.btn-action:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.no-action {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.8rem;
}

.admin-count {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.role-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.role-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.role-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.role-info {
    flex: 1;
}

.role-info h4 {
    margin: 0 0 4px 0;
    color: var(--dark);
}

.role-description {
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.5;
}

.role-permissions h5 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 0.9rem;
}

.role-permissions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-permissions li {
    padding: 4px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1rem;
    font-size: 0.8rem;
}

.role-permissions li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.strength-very-weak { background: #fee2e2; color: #dc2626; }
.strength-weak { background: #fef3c7; color: #d97706; }
.strength-fair { background: #dbeafe; color: #2563eb; }
.strength-good { background: #d1fae5; color: #059669; }
.strength-strong { background: #dcfce7; color: #16a34a; }

/* Radio Operator Styles */
.alert-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.alert-header {
    padding: 1.5rem;
    background: #fef2f2;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-header h3 {
    margin: 0;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-count {
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.alert-content {
    padding: 1.5rem;
}

.emergency-alerts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emergency-alert {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid;
    transition: var(--transition);
}

.emergency-alert:hover {
    transform: translateX(5px);
}

.alert-urgent {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.alert-progress {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.alert-resolved {
    background: #f0fdf4;
    border-left-color: #16a34a;
}

.alert-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.alert-urgent .alert-icon { background: #dc2626; }
.alert-progress .alert-icon { background: #2563eb; }
.alert-resolved .alert-icon { background: #16a34a; }

.alert-details {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-time {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}

.alert-location {
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-description {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.alert-reporter {
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-eta {
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
}

.alert-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    min-width: 120px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.radio-actions-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.action-panel, .hotlines-panel {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-btn.large {
    padding: 2rem 1rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.action-btn.large:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hotlines-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hotline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius);
    transition: var(--transition);
}

.hotline-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.hotline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotline-details {
    flex: 1;
}

.hotline-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.hotline-number {
    color: var(--text-light);
    font-size: 0.9rem;
}

.hotline-call {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hotline-call:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.communication-log {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.log-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.log-content {
    padding: 1.5rem;
}

.log-entries {
    height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 4px 0;
}

.log-time {
    color: var(--primary);
    font-weight: 500;
}

.log-input {
    display: flex;
    gap: 1rem;
}

.log-input .form-input {
    flex: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Response Types */
.response-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.response-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.response-type:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.response-type input[type="radio"] {
    display: none;
}

.response-type input[type="radio"]:checked + i + span {
    color: var(--primary);
    font-weight: 600;
}

.response-type input[type="radio"]:checked {
    border-color: var(--primary);
    background: #f0f9ff;
}

.response-type i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.response-type input[type="radio"]:checked + i {
    color: var(--primary);
}

/* Tooltip */
.tooltip {
    position: absolute;
    background: var(--dark);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    z-index: 10000;
    white-space: nowrap;
    pointer-events: none;
}

.tooltip:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }
    .admin-main {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .radio-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
        width: 280px;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-user-info span:not(:first-child) {
        display: none;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .response-types {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-alert {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .alert-actions {
        align-items: stretch;
        min-width: auto;
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-login-card {
        padding: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .admin-sidebar,
    .admin-header,
    .btn,
    .modal,
    .alert-actions {
        display: none !important;
    }
    
    .admin-main {
        margin: 0;
        width: 100%;
        padding: 0;
    }
    
    .dashboard-card {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}
/* Add these styles to admin.css */

/* Improved Table Styles */
.reports-table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.reports-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.reports-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.reports-table tr:hover {
    background: #f8fafc;
}

.report-id {
    font-weight: 600;
    color: var(--primary);
    font-family: monospace;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-fire { background: #fee2e2; color: #dc2626; }
.type-medical { background: #dbeafe; color: #1e40af; }
.type-natural { background: #fef3c7; color: #92400e; }
.type-accident { background: #e0e7ff; color: #3730a3; }
.type-other { background: #f3f4f6; color: #6b7280; }

.description-text {
    margin-bottom: 4px;
    line-height: 1.4;
}

.has-image {
    color: var(--primary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.report-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 8px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view { background: #dbeafe; color: #1e40af; }
.btn-edit { background: #fef3c7; color: #92400e; }
.btn-call { background: #d1fae5; color: #065f46; }
.btn-action:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Filters */
.reports-filter {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    min-width: 150px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-pagination {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 500;
    color: var(--text-light);
}

/* Notification Styles */
.notification-bell {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.notification-bell:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.notification-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.notification-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f9ff;
    border-left: 3px solid var(--primary);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-message {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Feedback Styles */
.feedback-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.feedback-item:last-child {
    border-bottom: none;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.feedback-user {
    font-weight: 600;
    color: var(--dark);
}

.feedback-rating {
    display: flex;
    gap: 2px;
}

.rating-star {
    color: #fbbf24;
}

.feedback-type {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 8px;
}

.feedback-message {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Design for Tables */
@media (max-width: 768px) {
    .reports-table {
        font-size: 0.8rem;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 0.5rem;
    }
    
    .reports-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .report-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-action {
        padding: 6px;
    }
}

/* Send Alert Button in Header */
.btn-send-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-send-alert:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Alert Type Styling in Modal */
.modal-body.alert-info {
    border-left: 4px solid var(--info);
}

.modal-body.alert-warning {
    border-left: 4px solid var(--warning);
}

.modal-body.alert-danger {
    border-left: 4px solid var(--danger);
}

/* Responsive Design for Header Buttons */
@media (max-width: 768px) {
    .btn-send-alert span {
        display: none;
    }
    
    .btn-send-alert {
        padding: 8px 12px;
    }
    
    .admin-user-info span:not(:first-child) {
        display: none;
    }
}

/* Logo Styles */
.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Updated Admin Login Background */
.admin-login-body {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)), 
                url('../images/login-bg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.admin-login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* Updated Logo Container */
.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.admin-logo i {
    font-size: 2rem;
}

/* Alternative background styles if you prefer solid color with pattern */
.admin-login-body.alternative-bg {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 55%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 55%);
}

/* Mobile responsive adjustments for logo */
@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    
    .admin-logo {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .admin-logo i {
        font-size: 1.7rem;
    }
}
/* Notification Styles */
.notification-bell {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.notification-bell:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Send Alert Button */
.btn-send-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-send-alert:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Notification Modal */
.notification-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.notification-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f9ff;
    border-left: 3px solid var(--primary);
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-message {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Responsive Design for Header Buttons */
@media (max-width: 768px) {
    .btn-send-alert span {
        display: none;
    }
    
    .btn-send-alert {
        padding: 8px 12px;
    }
    
    .admin-user-info span:not(:first-child) {
        display: none;
    }
}
/* Notification clickable styles */
.clickable-notification {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-notification:hover {
    background: #f0f9ff;
    transform: translateX(5px);
}

.link-icon {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--primary);
}

.report-badge {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Emergency type notification colors */
.emergency-fire {
    border-left: 3px solid var(--danger);
}

.emergency-medical {
    border-left: 3px solid var(--info);
}

.emergency-natural {
    border-left: 3px solid var(--warning);
}

.emergency-accident {
    border-left: 3px solid var(--primary);
}

.emergency-other {
    border-left: 3px solid var(--text-light);
}
/* Enhanced Mobile Responsive Styles */
.admin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
    gap: 1rem;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1;
}

.logo-text small {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--border);
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.admin-user-info:hover {
    background: #f8fafc;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: normal;
}

.btn-send-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-send-alert:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-text {
    display: inline;
}

.action-text {
    display: none;
}

.call-text {
    display: none;
}

.btn-refresh {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: sticky;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background: var(--primary-dark);
    transform: rotate(180deg);
}

.btn-refresh-sm {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 6px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh-sm:hover {
    background: var(--border);
    color: var(--text);
}

/* Dashboard Header Improvements */
.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.header-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.header-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

/* Alert Panel Improvements */
.alert-header {
    padding: 1.5rem;
    background: #fef2f2;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alert-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.alert-title h3 {
    margin: 0;
    color: #dc2626;
}

.alert-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.emergency-type {
    font-weight: 600;
}

/* Hotlines Panel Improvements */
.hotlines-panel {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.panel-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }
    .admin-main {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media (max-width: 768px) {
    .admin-header {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
        width: 280px;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem 1rem;
        margin-top: 70px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-user-info .user-details {
        display: none;
    }
    
    .btn-text {
        display: none;
    }
    
    .action-text {
        display: inline;
        font-size: 0.7rem;
    }
    
    .call-text {
        display: inline;
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .alert-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .alert-controls {
        justify-content: space-between;
    }
    
    .emergency-alert {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .alert-actions {
        align-items: stretch;
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .action-buttons {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .btn-action {
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        min-width: 60px;
    }
    
    .hotline-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hotline-call {
        width: 100%;
        border-radius: var(--radius);
        flex-direction: row;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 0 0.5rem;
    }
    
    .admin-logo .logo-text {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-badge {
        width: 100%;
        justify-content: center;
    }
    
    .alert-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .btn-action {
        flex: 1;
        min-width: 80px;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .response-types {
        grid-template-columns: 1fr;
    }
    
    .hotlines-panel {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .admin-sidebar,
    .admin-header,
    .btn,
    .modal,
    .alert-actions {
        display: none !important;
    }
    
    .admin-main {
        margin: 0;
        width: 100%;
        padding: 0;
    }
    
    .alert-panel,
    .hotlines-panel {
        box-shadow: none;
        border: 1px solid var(--border);
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Enhanced Button States */
.btn:active {
    transform: translateY(0);
}

.btn-action:active {
    transform: scale(0.95);
}

/* Improved Focus States */
.btn:focus,
.btn-action:focus,
.form-input:focus,
.form-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn-action:hover {
        transform: none;
    }
    
    .emergency-alert:hover {
        transform: none;
    }
    
    .hotline-item:hover {
        transform: none;
    }
}

/* Enhanced Notification Animations */
.notification-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item.fade-out {
    opacity: 0;
    transform: translateX(-20px);
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.clickable-notification {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-notification:hover {
    background: #f0f9ff;
    transform: translateX(5px);
}

/* Smooth removal animation */
@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 100px;
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

.notification-removing {
    animation: slideOut 0.3s ease forwards;
}

/* Enhanced notification badge */
.notification-badge {
    transition: all 0.3s ease;
}

.notification-badge.pulse {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
/* Quick Dispatch Styles */
.quick-dispatch-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.report-summary {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item.full-width {
    grid-column: 1 / -1;
}

.summary-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.8rem;
}

.summary-item p {
    margin: 0;
    line-height: 1.4;
}

.quick-response {
    grid-template-columns: 1fr;
}

.quick-notes {
    margin: 1rem 0;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Responsive quick dispatch */
@media (max-width: 768px) {
    .quick-dispatch-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
}

/* admin.css - ADDITIONAL STYLES ONLY */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--border);
}

/* Logo Styles */
.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.logo-text small {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* User Details in Header */
.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: normal;
}

/* Charts Section */
.charts-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-controls h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.period-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-btn {
    background: #f3f4f6;
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.period-btn:hover {
    background: #e5e7eb;
    color: var(--primary);
}

.period-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.chart-header small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-card.full-width .chart-container {
    height: 300px;
}

/* Activity Section */
.activity-section {
    margin-bottom: 2rem;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Feedbacks List */
.feedbacks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.feedback-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.feedback-user {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-type {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.feedback-rating {
    display: flex;
    gap: 0.125rem;
}

.rating-star {
    font-size: 0.875rem;
    color: #d1d5db;
}

.rating-star.filled {
    color: #f59e0b;
}

.feedback-message {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Header Stats */
.header-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

/* Button Text Variations */
.btn-text {
    display: inline;
}

.action-text {
    display: none;
}

.call-text {
    display: none;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #10b981;
    z-index: 3000;
    animation: slideInRight 0.3s ease;
}

.notification-toast.error {
    border-left-color: #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content i {
    font-size: 1.25rem;
}

.notification-toast.success .toast-content i {
    color: #10b981;
}

.notification-toast.error .toast-content i {
    color: #ef4444;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    
    .admin-user-info .user-details {
        display: none;
    }
    
    .btn-text {
        display: none;
    }
    
    .action-text {
        display: inline;
        font-size: 0.7rem;
    }
    
    .charts-section {
        padding: 1.5rem;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .period-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .period-btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .chart-card.full-width .chart-container {
        height: 250px;
    }
    
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feedback-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .admin-logo .logo-text {
        display: none;
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-badge {
        width: 100%;
        justify-content: center;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-card {
        padding: 1rem;
    }
}
/* User Feedbacks Specific Styles */

/* Emoji Rating System */
.emoji-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.emoji {
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.3;
}

.emoji.active {
    opacity: 1;
    transform: scale(1.1);
}

.emoji:hover {
    transform: scale(1.2);
}

.rating-text {
    margin-left: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.emoji-rating-small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
}

/* Rating Distribution */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-label {
    width: 80px;
    font-weight: 500;
    color: var(--dark);
}

.rating-progress {
    flex: 1;
    height: 24px;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.rating-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
    min-width: 40px;
}

.rating-count {
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.rating-percentage {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

/* Feedback Item Enhancements */
.feedback-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.feedback-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.feedback-user {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feedback-type {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.feedback-message {
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feedback-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feedback-time, .feedback-email {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Stats Icons for Feedbacks */
.stat-icon .fa-smile { color: #10b981; }
.stat-icon .fa-meh { color: #f59e0b; }
.stat-icon .fa-frown { color: #ef4444; }
.stat-icon .fa-comments { color: #3b82f6; }

/* Mobile Responsive for Feedbacks */
@media (max-width: 768px) {
    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .emoji-rating {
        align-self: flex-start;
    }
    
    .feedback-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-progress {
        width: 100%;
    }
    
    .rating-percentage {
        align-self: flex-end;
    }
}

/* Add to admin.css */

/* Report Highlighting Styles */
.highlighted-report {
    border-left: 4px solid var(--primary) !important;
    background: #f0f9ff !important;
    transition: all 0.3s ease;
}

@keyframes pulse-highlight {
    0% { background-color: #f0f9ff; }
    50% { background-color: #e0f2fe; }
    100% { background-color: #f0f9ff; }
}

.report-row {
    transition: all 0.3s ease;
    position: relative;
}

/* Enhanced notification styles */
.clickable-notification {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-notification:hover {
    background: #f0f9ff !important;
    transform: translateX(5px);
    border-left-color: var(--primary) !important;
}

.link-icon {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.clickable-notification:hover .link-icon {
    opacity: 1;
    transform: translateX(2px);
}

.report-badge {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Emergency type specific notification borders */
.notification-item.emergency-fire {
    border-left: 3px solid var(--danger);
}

.notification-item.emergency-medical {
    border-left: 3px solid var(--info);
}

.notification-item.emergency-natural {
    border-left: 3px solid var(--warning);
}

.notification-item.emergency-accident {
    border-left: 3px solid var(--primary);
}

.notification-item.emergency-other {
    border-left: 3px solid var(--text-light);
}

/* Notification removal animation */
.notification-removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
        max-height: 100px;
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}
/* Add these styles to admin.css */

/* Barangay Chart Styles */
.chart-card .chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-card.full-width .chart-container {
    height: 300px;
}

/* Horizontal bar chart adjustments */
canvas[data-bar-orientation="horizontal"] {
    max-height: 400px;
}

/* Chart header improvements */
.chart-header {
    margin-bottom: 1.5rem;
}

.chart-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.chart-header small {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Period filter buttons */
.period-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-btn {
    background: #f3f4f6;
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.period-btn:hover {
    background: #e5e7eb;
    color: var(--primary);
}

.period-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .chart-card.full-width .chart-container {
        height: 250px;
    }
    
    .period-filters {
        justify-content: space-between;
        width: 100%;
    }
    
    .period-btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Print styles for charts */
@media print {
    .chart-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
/* Heatmap Section Styles */
.heatmaps-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    margin: 0;
}

/* Heatmap Controls */
.heatmap-controls {
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: #f3f4f6;
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-control-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-control-btn:hover {
    background: #f3f4f6;
    border-color: var(--primary);
}

.map-control-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.intensity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.intensity-control input[type="range"] {
    width: 150px;
}

#intensityValue {
    font-weight: 600;
    color: var(--primary);
    min-width: 80px;
}

/* Heatmap Container */
.heatmap-container {
    padding: 1.5rem;
}

.heatmap-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.heatmap-stat {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Emergency List */
.emergencies-list {
    margin-top: 1.5rem;
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.emergencies-list h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergencies-list-content {
    max-height: 400px;
    overflow-y: auto;
}

.emergency-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.emergency-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
    border-left-color: var(--primary);
}

.emergency-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.emergency-details {
    flex: 1;
}

.emergency-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.emergency-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-in_progress { background: #dbeafe; color: #1e40af; }
.status-resolved { background: #d1fae5; color: #065f46; }

.emergency-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.emergency-description {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

/* Marker Popup Styles */
.marker-popup {
    min-width: 250px;
    max-width: 300px;
}

.popup-header {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.popup-meta {
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.popup-meta div {
    margin-bottom: 0.25rem;
}

.popup-description {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.4;
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: var(--radius);
}

/* Leaflet Marker Styles */
.emergency-marker {
    cursor: pointer;
}

.user-location-marker {
    cursor: pointer;
}

/* Responsive Design for Heatmaps */
@media (max-width: 1024px) {
    .heatmap-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .heatmap-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-group {
        width: 100%;
    }
    
    .filter-buttons, .map-controls {
        flex-wrap: wrap;
    }
    
    .heatmap-stats {
        grid-template-columns: 1fr;
    }
    
    .emergency-item {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-title {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .heatmap-container {
        padding: 1rem;
    }
    
    .filter-btn, .map-control-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    .intensity-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .intensity-control input[type="range"] {
        width: 100%;
    }
}

/* Animation for heatmap markers */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.user-location-marker div {
    animation: pulse 2s infinite;
}

/* Chart Filter Styles */
.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-controls h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.period-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.period-btn {
    background: #f3f4f6;
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.period-btn:hover {
    background: #e5e7eb;
    color: var(--primary);
}

.period-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

/* Chart Header Improvements */
.chart-header {
    margin-bottom: 1.5rem;
}

.chart-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.chart-header small {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.chart-card.full-width .chart-container {
    height: 300px;
}

/* Download Button */
.btn-refresh-sm {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 6px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh-sm:hover {
    background: var(--border);
    color: var(--text);
}

/* Filter Select */
.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    min-width: 120px;
    background: white;
}

/* Responsive Chart Styles */
@media (max-width: 768px) {
    .chart-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .period-filters {
        width: 100%;
        justify-content: space-between;
    }
    
    .period-btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .chart-card.full-width .chart-container {
        height: 250px;
    }
}

/* Loading Animation for Charts */
@keyframes chartLoading {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.chart-loading {
    animation: chartLoading 1.5s ease-in-out infinite;
}