/* ===== CITIZEN PAGES STYLES ===== */

/* Common Styles */
body.citizen-page {
    background: #f8f9ff;
}

.page-title {
    color: #002e8a;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-hero {
    background: linear-gradient(135deg, #002e8a 0%, #0040a0 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 46, 138, 0.2);
}

.dashboard-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 46, 138, 0.1);
    text-decoration: none;
    color: #002e8a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 46, 138, 0.2);
    border-color: #002e8a;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #002e8a;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.service-card small {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.info-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e0e6ff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-section h5 {
    color: #002e8a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    margin: 0;
    color: #555;
}

.info-section i {
    font-size: 1.2rem;
}

/* ===== ACCOUNT SETTINGS STYLES ===== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.settings-card h3 {
    color: #002e8a;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #002e8a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e6ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #002e8a;
}

.form-group input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn {
    background: linear-gradient(135deg, #002e8a 0%, #0040a0 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 46, 138, 0.3);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.password-requirements {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.password-requirements li {
    margin-bottom: 0.25rem;
}

/* ===== REQUESTS STATUS STYLES ===== */
.status-card {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 46, 138, 0.1);
}

.table {
    background: white;
    border-radius: 12px;
}

.badge {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #333;
}

.badge-danger {
    background-color: #dc3545;
}

.nav-tabs .nav-link.active {
    background-color: #002e8a;
    color: white;
    border-color: #002e8a;
}

/* ===== DOCUMENTS REQUEST STYLES ===== */
.form-card {
    background: white;
    border: 2px solid #e0e6ff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 46, 138, 0.1);
}

.form-label {
    color: #002e8a;
    font-weight: 600;
}

.btn-primary {
    background-color: #002e8a;
    border: none;
}

.btn-primary:hover {
    background-color: #0040a0;
}

.required {
    color: red;
}

.file-upload-section {
    background: #f8f9ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #002e8a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.row-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* ===== FORGOT PASSWORD STYLES ===== */
body.forgot-password-page {
    background: linear-gradient(135deg, #002e8a 0%, #0040a0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.forgot-password-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 46, 138, 0.2);
    max-width: 450px;
    width: 100%;
    padding: 2.5rem;
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 2rem;
}

.forgot-password-header h1 {
    color: #002e8a;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.forgot-password-header p {
    color: #666;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid #e0e6ff;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #002e8a;
    box-shadow: 0 0 0 3px rgba(0, 46, 138, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #002e8a 0%, #0040a0 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 46, 138, 0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.success-content {
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-title {
    color: #002e8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-text {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-back {
    display: inline-block;
    background: #002e8a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #001a5e;
    color: white;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e6ff;
}

.login-link a {
    color: #002e8a;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ===== ID ACCOUNT STYLES ===== */
.id-card {
    background: linear-gradient(135deg, #002e8a 0%, #0040a0 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 3px solid #ffd700;
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 46, 138, 0.3);
}

.id-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 1rem;
}

.barangay-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #002e8a;
    font-size: 2rem;
}

.id-card-title {
    flex: 1;
    text-align: center;
    margin: 0 1rem;
}

.id-card-title h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.id-card-title p {
    margin: 0.3rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.qr-code {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #002e8a;
    flex-shrink: 0;
}

.qr-code img {
    width: 85px;
    height: 85px;
    padding: 2px;
}

.id-card-body {
    margin-bottom: 1.5rem;
}

.id-info {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.id-info label {
    font-weight: 600;
    opacity: 0.8;
    font-size: 0.85rem;
}

.id-info-value {
    font-size: 1rem;
    font-weight: 500;
}

.id-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
}

.id-number {
    font-size: 0.9rem;
    opacity: 0.8;
}

.validity-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.validity-badge.active {
    background: rgba(40, 167, 69, 0.3);
}

.validity-badge.expiring {
    background: rgba(255, 193, 7, 0.3);
}

.validity-badge.expired {
    background: rgba(220, 53, 69, 0.3);
}

.print-warning {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.print-warning i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.9rem;
}

.warning-text {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #ffc107;
}

.renewal-fee-alert {
    background: #cfe2ff;
    border: 2px solid #084298;
    color: #084298;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.renewal-fee-alert h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.renewal-fee-alert .fee {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.renewal-fee-alert p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

@media print {
    .id-card {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
    .print-disabled {
        display: none !important;
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet Screens */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-hero {
        padding: 1.5rem;
    }

    .dashboard-hero h1 {
        font-size: 1.8rem;
    }

    .dashboard-hero p {
        font-size: 0.95rem;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
        min-height: 160px;
    }

    .service-card i {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card small {
        font-size: 0.8rem;
    }

    .info-section {
        padding: 1rem;
    }

    .info-section h5 {
        font-size: 1rem;
    }

    .info-section p {
        font-size: 0.95rem;
    }

    .settings-container {
        max-width: 100%;
    }

    .settings-card {
        padding: 1.5rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .id-card {
        padding: 1.5rem;
    }

    .id-card-header {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .barangay-logo {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .id-card-title h4 {
        font-size: 1rem;
    }

    .qr-code {
        width: 75px;
        height: 75px;
    }

    .qr-code img {
        width: 70px;
        height: 70px;
    }
}

/* Mobile Screens */
@media (max-width: 576px) {
    .page-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .dashboard-hero {
        padding: 1.2rem;
    }

    .dashboard-hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .dashboard-hero p {
        font-size: 0.85rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-card {
        padding: 1rem;
        min-height: 140px;
    }

    .service-card i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .service-card h3 {
        font-size: 0.95rem;
    }

    .service-card small {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }

    .info-section {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .info-section h5 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .info-section p {
        font-size: 0.9rem;
    }

    .info-section i {
        font-size: 1rem;
    }

    .id-card {
        padding: 1rem;
        min-height: 300px;
    }

    .id-card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }

    .barangay-logo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .id-card-title h4 {
        font-size: 0.95rem;
    }

    .id-card-title p {
        font-size: 0.8rem;
    }

    .qr-code {
        width: 65px;
        height: 65px;
        font-size: 0.65rem;
    }

    .qr-code img {
        width: 60px;
        height: 60px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    body.citizen-page {
        background: #f8f9ff;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .dashboard-hero {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}
