﻿/* styles.css - Complete unified styles for all Face Attendance pages */
:root {
    --primary: #1976D2;
    --primary-dark: #1565C0;
    --primary-light: #42A5F5;
    --secondary: #FF6D00;
    --text: #333333;
    --text-light: #666666;
    --background: #f8f9fa;
    --white: #ffffff;
    --gray: #e9ecef;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

    nav a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 180px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .page-header h1 {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 1rem;
    }

    .page-header p {
        font-size: 1.1rem;
        color: var(--text-light);
        max-width: 700px;
        margin: 0 auto;
    }

/* Common Card Styles */
.content-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Section Styles */
.content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray);
}

    .content-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .content-section h2 {
        color: var(--primary);
        margin-bottom: 1.2rem;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .content-section h2 i {
            color: var(--secondary);
        }

    .content-section p {
        margin-bottom: 1rem;
        color: var(--text);
    }

    .content-section ul {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-section li {
        margin-bottom: 0.5rem;
    }

/* Highlight Box */
.highlight-box {
    background-color: rgba(25, 118, 210, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

    .highlight-box p {
        margin-bottom: 0;
        color: var(--primary-dark);
    }

/* Last Updated */
.last-updated {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2.5rem;
    padding: 10px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Info Styles */
.contact-info {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-top: 3rem;
}

    .contact-info h3 {
        color: var(--primary);
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        text-align: center;
    }

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    text-align: center;
    padding: 1rem;
}

    .contact-item h4 {
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .contact-item p {
        color: var(--text-light);
    }

/* Contact Page Specific */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

    .contact-info-card h2 {
        color: var(--primary);
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-method-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    background-color: var(--primary-light);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-detail-item h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-detail-item p {
    color: var(--text-light);
}

.office-hours {
    margin-top: 2rem;
}

    .office-hours h3 {
        color: var(--primary);
        margin-bottom: 1rem;
    }

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

    .hours-table tr {
        border-bottom: 1px solid var(--gray);
    }

        .hours-table tr:last-child {
            border-bottom: none;
        }

    .hours-table td {
        padding: 10px 0;
    }

        .hours-table td:first-child {
            font-weight: 500;
        }

        .hours-table td:last-child {
            text-align: right;
            color: var(--text-light);
        }

/* Contact Form */
.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}

    .contact-form h2 {
        color: var(--primary);
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--text);
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn1 {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn1:hover {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.btn-block {
    display: block;
    width: 100%;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
}

    .faq-section h2 {
        text-align: center;
        color: var(--primary);
        margin-bottom: 2rem;
        font-size: 2rem;
    }

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

    .faq-item h3 {
        color: var(--primary);
        margin-bottom: 0.8rem;
        font-size: 1.2rem;
    }

    .faq-item p {
        color: var(--text-light);
    }

/* Refund Page Specific */
.policy-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 20px;
}

    .sidebar h3 {
        color: var(--primary);
        margin-bottom: 1.5rem;
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--gray);
    }

.sidebar-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sidebar-contact-icon {
    background-color: var(--primary-light);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-contact-details h4 {
    color: var(--primary);
    margin-bottom: 4px;
}

.sidebar-contact-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--gray);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

    .app-badge:hover {
        background-color: var(--primary-light);
        color: white;
    }

.badge-icon {
    font-size: 1.8rem;
}

.badge-text {
    font-size: 0.9rem;
}

    .badge-text strong {
        display: block;
        font-size: 1rem;
    }

/* Service Providers */
.service-providers {
    margin-top: 1.5rem;
}

    .service-providers ul {
        margin-left: 1.5rem;
    }

    .service-providers a {
        color: var(--primary);
        text-decoration: none;
    }

        .service-providers a:hover {
            text-decoration: underline;
        }

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

    .footer-logo i {
        font-size: 1.8rem;
    }

    .footer-logo span {
        font-size: 1.4rem;
        font-weight: 700;
    }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

    .footer-links a {
        color: white;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--primary-light);
        }

.copyright {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .content-card {
        padding: 1.8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .policy-container {
        grid-template-columns: 1fr;
    }

    .contact-info-card, .contact-form {
        padding: 1.8rem;
    }

    .sidebar {
        position: static;
    }
}
