/* Inbox - Custom Styles - Light Theme */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #ffffff;
    --bg-gray: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

/* Global Custom Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 115, 232, 0.6) rgba(0, 0, 0, 0.05);
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0f4a8a 100%);
}

*::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.05);
}

/* Body and HTML Scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1557b0 0%, #0f4a8a 100%);
}

/* Logo Styling - Show logo if exists, fallback if not */
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.auth-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* No filter - show logo in original colors */
    filter: none !important;
}

.main-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* No filter - show logo in original colors */
    filter: none !important;
    /* Remove all spacing around logo */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    vertical-align: top;
}

/* Responsive logo sizing for landing page */
@media (min-width: 992px) {
    .main-logo {
        max-width: 250px;
    }
}

@media (max-width: 991px) {
    .main-logo {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .main-logo {
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .main-logo {
        max-width: 150px;
    }
}

.logo-fallback {
    display: none;
    align-items: center;
}

.auth-logo-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    display: none;
}

/* Ensure logos are visible by default - only hide if explicitly set to none */
img.logo-img:not([style*="display: none"]),
img.auth-logo:not([style*="display: none"]),
img.main-logo:not([style*="display: none"]),
img.sidebar-logo:not([style*="display: none"]) {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure all logo images are visible and show in original colors */
img[src*="MailiasLightlogo.png"]:not([style*="display: none"]) {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Remove all filters from logos - show in original colors */
.navbar .logo-img,
.auth-card-header .auth-logo,
.landing-hero .main-logo,
.outlook-sidebar-header .sidebar-logo {
    filter: none !important;
}

/* Body and Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar - Light Theme */
.navbar {
    background-color: var(--bg-light) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-dark {
    background-color: var(--bg-light) !important;
}

.navbar-brand {
    font-weight: 600;
    color: var(--text-primary) !important;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Landing Page Styles */
.landing-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 80px 20px;
    margin: -1rem -15px 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.landing-hero > * {
    position: relative;
    z-index: 1;
}

.main-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
    vertical-align: top;
}

.logo-placeholder {
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-icon-large {
    font-size: 2.5rem;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    margin: 0;
}

.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.landing-hero .lead {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.landing-hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.landing-features {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.feature-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #ffffff;
    font-size: 2.5rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.feature-card h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Landing Page Button Styles - Enhanced for gradient background */
.landing-hero .btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #1e40af;
    border: 2px solid rgba(255, 255, 255, 0.9);
    padding: 16px 40px;
    font-weight: 600;
    font-size: 1.15rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.landing-hero .btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 1);
}

.landing-hero .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.landing-hero .btn-light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 16px 40px;
    font-weight: 600;
    font-size: 1.15rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-transform: none;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.landing-hero .btn-light:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.landing-hero .btn-light:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Auth Pages Styles */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-card {
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 2rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.auth-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: none !important;
}

.auth-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-logo-icon {
    font-size: 2rem;
}

.auth-card-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #ffffff;
}

.auth-card-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

.auth-card-body {
    padding: 2.5rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 2rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #efe;
    color: #28a745;
    border-left: 4px solid #28a745;
}

/* Footer */
.footer-custom {
    background-color: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    margin-top: 4rem;
}

.footer-custom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .landing-hero {
        padding: 60px 20px;
    }
    
    .landing-hero h1 {
        font-size: 2.5rem;
    }
    
    .landing-hero .lead {
        font-size: 1.25rem;
    }
    
    .landing-features {
        padding: 60px 20px;
    }
    
    .feature-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .auth-card-body {
        padding: 2rem;
    }
    
    .auth-card-header {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .landing-hero h1 {
        font-size: 2rem;
    }
    
    .landing-hero .btn-primary,
    .landing-hero .btn-light {
        padding: 12px 28px;
        font-size: 1rem;
        width: 100%;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon-large {
        font-size: 2rem;
    }
}

/* Remove dark mode support - Light theme only */
@media (prefers-color-scheme: dark) {
    /* Override any dark mode preferences - force light theme */
    body {
        background-color: var(--bg-light) !important;
        color: var(--text-primary) !important;
    }
    
    .card {
        background-color: var(--bg-light) !important;
        color: var(--text-primary) !important;
    }
}
