/* Shared styles used across all pages */

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    background-color: #F7F8FA;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.top-banner {
    background-color: #f8f9fa;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    width: auto;
    height: 50px;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    pointer-events: none;
}

.header-title h3 {
    pointer-events: auto;
}

.btn-primary {
    background-color: #445082;
    border-color: #445082;
    color: white;
}

.btn-primary:hover {
    background-color: #3a4370;
    border-color: #3a4370;
    color: white !important;
}

.mobile-signout {
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
}

.signout-text {
    font-size: 1rem;
}

h2 {
    color: #2B3C6B;
}

/* Loading spinner for email content */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Footer Styles */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
}

.footer a {
    color: #445082;
    margin: 0 10px;
}

.footer a:hover {
    color: #2B3C6B;
    text-decoration: none;
}

/* Beta badge (discreet) */
.badge-beta {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 11px;
    line-height: 1;
    color: #0b3a67;
    background: #e7f0fa;
    border: 1px solid #cfe3f7;
    margin-left: 6px;
    vertical-align: middle;
}

/* Container flex layout is already defined in body above */

.container.mt-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .header-title {
        position: static;
        transform: none;
        width: 100%;
        text-align: center !important;
        order: 2;
    }
    
    .top-banner .container .d-flex {
        flex-wrap: wrap;
    }
    
    .top-banner .d-flex > div:first-child {
        order: 1;
    }
    
    .top-banner .d-flex > div:last-child {
        order: 3;
    }
    
    .header-title h3 {
        font-size: 1.3rem !important;
        margin-top: 10px !important;
    }
}

@media screen and (max-width: 576px) {
    .logo {
        height: 30px;
    }
    
    .header-title h3 {
        font-size: 1.1rem !important;
    }
    
    .signout-text {
        display: none;
    }
    
    .mobile-signout {
        min-width: auto;
        padding: 0.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}