/* AACC D1 Extension Portal Styles */

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

:root {
    /* AACC Official Brand Colors */
    --aacc-teal: #2d8b8a;
    --aacc-teal-light: #4da5a4;
    --aacc-teal-dark: #236b6a;
    --aacc-accent: #5bb5b4;
    --aacc-gray: #666666;
    --aacc-light-gray: #f5f5f5;
    
    /* Primary Brand Colors (using AACC teal) */
    --primary-color: var(--aacc-teal);
    --primary-light: var(--aacc-teal-light);
    --primary-dark: var(--aacc-teal-dark);
    --accent-color: var(--aacc-accent);
    
    /* Supporting Colors */
    --secondary-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(45, 139, 138, 0.1);
    --shadow-lg: 0 4px 20px rgba(45, 139, 138, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--aacc-teal), var(--aacc-teal-light));
    min-height: 100vh;
}

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

.hidden {
    display: none !important;
}

/* =============================================================================
   PASSWORD PROTECTION OVERLAY
   ============================================================================= */

.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--aacc-blue), var(--aacc-light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.password-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 100%;
    margin: 20px;
}

.aacc-logo {
    margin-bottom: 30px;
}

.aacc-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.aacc-brand-logo {
    max-width: 150px !important;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.aacc-logo h1 {
    color: var(--aacc-teal);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.aacc-logo p {
    color: var(--text-light);
    font-size: 14px;
}

.password-form {
    margin-bottom: 30px;
}

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

.password-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

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

.password-form button {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-form button:hover {
    background: var(--primary-dark);
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.error-message.show {
    display: block;
}

.password-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 12px;
    color: var(--text-light);
}

.password-footer p {
    margin-bottom: 5px;
}

/* =============================================================================
   MAIN WEBSITE LAYOUT
   ============================================================================= */

.main-content {
    background: var(--white);
    min-height: 100vh;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.logo {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.title-group h1 {
    color: var(--aacc-teal);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.title-group p {
    color: var(--text-light);
    font-size: 14px;
}

.logout-btn {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
}

/* Status Banner */
.status-banner {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 0;
    text-align: center;
}

.status-banner.warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.status-banner.error {
    background: var(--danger-color);
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-icon {
    font-size: 16px;
}

/* =============================================================================
   MAIN SECTIONS
   ============================================================================= */

.main {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h3 {
    color: var(--aacc-blue);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
}

.hero-content h2 {
    color: var(--aacc-blue);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-description {
    color: var(--text-light);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 24px;
}

.version-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.version-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.update-status {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

/* Installation Steps */
.install-section {
    margin-bottom: 60px;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.step-content h4 {
    color: var(--aacc-blue);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.download-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background: var(--primary-dark);
}

.btn-version {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.install-instructions ol,
.usage-tips ul {
    margin-top: 15px;
}

.install-instructions li,
.usage-tips li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.install-instructions code {
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Updates Section */
.updates-section {
    margin-bottom: 60px;
}

.update-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.update-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.update-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.update-content h4 {
    color: var(--aacc-blue);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.update-content p {
    color: var(--text-light);
    font-size: 14px;
}

.manual-update {
    text-align: center;
}

.check-updates-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.check-updates-btn:hover {
    background: #218838;
}

/* Support Section */
.support-section {
    margin-bottom: 40px;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.faq-section h4,
.contact-section h4 {
    color: var(--aacc-blue);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item details {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.faq-item summary:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 20px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.contact-info strong {
    color: var(--aacc-blue);
    display: block;
    margin-bottom: 4px;
}

.contact-info p,
.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
    background: var(--aacc-blue);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--aacc-orange);
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    color: #c1c9d6;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #c1c9d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--aacc-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #a8b5c8;
}

/* =============================================================================
   LOADING OVERLAY
   ============================================================================= */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .install-steps {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .version-info {
        flex-direction: column;
    }
    
    .password-container {
        margin: 10px;
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 20px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h3 {
        font-size: 24px;
    }
    
    .hero-section {
        padding: 30px 15px;
        margin-bottom: 40px;
    }
    
    .step,
    .update-card,
    .contact-item {
        padding: 20px 15px;
    }
}