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

:root {
    --primary-color: #0F2A4B;
    --accent-color: #1E4A7B;
    --text-primary: #0F2A4B;
    --text-secondary: #4A5568;
    --bg-light: #F8FAFC;
    --border-color: #E2E8F0;
    --success-color: #10B981;
    --white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
header {
    background-color: #FFFFFF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    width: auto;
    max-width: 150px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

.btn-signup {
    background-color: var(--primary-color);
    color: white !important;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-signup:hover {
    background-color: var(--accent-color);
}

/* Logo text styling */
.logo span {
    color: var(--text-primary);
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Widget Header */
.widget-header {
    text-align: center;
    margin-bottom: 40px;
}

.widget-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.widget-header p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.widget-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-refresh,
.btn-external {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-refresh:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 42, 75, 0.2);
}

.btn-external {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-external:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 42, 75, 0.2);
}

/* Widget Container */
.widget-container {
    margin-bottom: 60px;
}

.widget-frame {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

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

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

.loading-overlay p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

#widget-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white !important;
    background: white !important;
}

/* Ensure iframe wrapper also has white background */
.widget-frame iframe {
    background-color: white !important;
    background: white !important;
}

/* Force white background on iframe content */
.widget-frame {
    background: white !important;
}

.widget-container {
    background-color: white;
}

/* Additional iframe background forcing */
iframe#widget-iframe {
    background-color: white !important;
    background: white !important;
}

iframe[id="widget-iframe"] {
    background-color: white !important;
    background: white !important;
}

/* Target any iframe within widget frame */
.widget-frame > iframe {
    background-color: white !important;
    background: white !important;
}

/* Widget Info Section */
.widget-info {
    margin-top: 60px;
}

.info-section {
    text-align: center;
    margin-bottom: 48px;
}

.info-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.info-section p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: auto;
}

/* Loading States */
.widget-frame.loading #widget-iframe {
    opacity: 0.3;
    background-color: white;
}

.widget-frame.loaded .loading-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
}

.mobile-menu-toggle:hover {
    background-color: var(--bg-light);
    border-radius: 4px;
}

.hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links.mobile-open {
    display: flex;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        z-index: 1000;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 8px;
        text-align: center;
        font-size: 16px;
    }
    
    .nav-links a:hover {
        background-color: var(--bg-light);
        opacity: 1;
    }
    
    .btn-signup {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
    
    nav {
        position: relative;
    }

    .widget-header h1 {
        font-size: 36px;
    }

    .widget-header p {
        font-size: 18px;
        padding: 0 20px;
    }

    .widget-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-refresh,
    .btn-external {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .widget-frame {
        height: 60vh;
        min-height: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .info-section h2 {
        font-size: 28px;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 16px;
    }
    
    .widget-header h1 {
        font-size: 28px;
    }
    
    .widget-frame {
        height: 50vh;
        min-height: 350px;
    }
} 