/* Government Project Color Scheme */
:root {
    --primary-saffron: #FF9933;
    --primary-white: #FFFFFF;
    --primary-green: #138808;
    --primary-blue: #1E3A8A;
    --secondary-blue: #2563EB;
    --dark-blue: #1E40AF;
    --light-gray: #F3F4F6;
    --border-gray: #E5E7EB;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Header Styles */
.gov-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    font-size: 12px;
}

.header-main {
    padding: 15px 0;
}

.gov-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gov-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.gov-logo h1 {
    font-size: 24px;
    font-weight: 600;
}

.gov-logo p {
    font-size: 12px;
    opacity: 0.9;
}

/* Navigation */
.gov-nav {
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
}

.gov-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.gov-nav li {
    position: relative;
}

.gov-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.gov-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.user-info .name {
    font-weight: 500;
}

.logout-btn {
    background: var(--danger);
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-saffron);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-blue);
    margin-top: 10px;
}

.stat-card .stat-change {
    font-size: 12px;
    margin-top: 10px;
    color: var(--text-light);
}

/* Tables */
.data-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-gray);
}

.data-table tbody tr:hover {
    background: var(--light-gray);
}

/* Forms */
.gov-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

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

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

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Footer */
.gov-footer {
    background: var(--dark-blue);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.7;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    height: 80px;
    margin-bottom: 20px;
}

.login-header h2 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .gov-nav ul {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

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

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.notice-strip {
    background: linear-gradient(135deg, var(--warning), #F97316);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.notice-strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.notice-strip-btn {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}

.notice-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notice-popup-card {
    width: min(760px, 100%);
    max-height: 80vh;
    overflow: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.notice-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-gray);
}

.notice-popup-header h3 {
    margin: 0;
    color: var(--primary-blue);
}

.notice-popup-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
}

.notice-popup-body {
    padding: 20px 22px;
}

.notice-popup-item {
    border-left: 5px solid var(--info);
    background: var(--light-gray);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.notice-popup-item h4 {
    margin: 0 0 6px;
    color: var(--text-dark);
}

.notice-popup-item small {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.notice-popup-item p {
    margin: 0;
    line-height: 1.6;
}

.notice-popup-item.priority-high {
    border-left-color: var(--danger);
}

.notice-popup-item.priority-medium {
    border-left-color: var(--warning);
}

.notice-popup-item.priority-low {
    border-left-color: var(--success);
}

/* Chart Container */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-gray);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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