/* Bolsa Mexicana de Valores Theme - BMV Green & White Simple */

:root {
    /* BMV Simplified Colors - Green & White */
    --bmv-primary: #009B4D; /* Verde BMV Principal */
    --bmv-primary-dark: #007A3D; /* Verde BMV Oscuro */
    --bmv-primary-light: #00B85A; /* Verde BMV Claro */
    --bmv-accent: #009B4D; /* Verde BMV como acento */
    --bmv-accent-glow: rgba(0, 155, 77, 0.15);
    --bmv-secondary: #009B4D; /* Verde BMV Único */
    --bmv-secondary-dark: #007A3D; /* Verde BMV Oscuro */
    /* Text Colors */
    --bmv-text-primary: #1a1a1a;
    --bmv-text-secondary: #4a4a4a;
    /* UI Colors */
    --bmv-border: rgba(0, 155, 77, 0.15);
    --bmv-card-bg: #ffffff;
    --bmv-input-bg: #f8f9fa;
    --bmv-bg-primary: #ffffff;
    --bmv-bg-secondary: #f5f7fa;
    --bmv-hover: rgba(0, 155, 77, 0.08);
    /* Status Colors */
    --bmv-success: #009B4D;
    --bmv-error: #dc3545;
    --bmv-warning: #f0ad4e;
    --bmv-info: #009B4D;
}

/* Global Styles */
body {
    background: #ffffff !important;
    background-attachment: fixed;
    color: var(--bmv-text-primary);
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
}

/* Force white background for main container */
.bmv-screen-control,
.bmv-dashboard,
.bmv-layout {
    background: #ffffff !important;
}

/* Force white background for cards and panels */
.bmv-card,
.bmv-internal-panel,
.bmv-external-panel {
    background: #ffffff !important;
}

/* Subtle Background Pattern - Hidden in light mode for cleaner white background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

/* Login Container - Diseño sobrio para BMV */
.bmv-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: #ffffff;
}

.bmv-login-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo - Estilo sobrio para BMV - Forzado centrado */
.bmv-logo {
    text-align: center !important;
    margin-bottom: 2rem;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem;
    width: 100%;
}

    .bmv-logo img,
    .bmv-logo .bmv-logo-image {
        max-width: 200px;
        height: auto;
        object-fit: contain;
    }

    .bmv-logo .bmv-logo-text {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: 0.05em;
        line-height: 1.2;
        display: block !important;
        margin: 0 auto !important;
        padding: 0;
        text-align: center !important;
        width: 100% !important;
    }

    .bmv-logo .bmv-subtitle {
        color: #4a4a4a;
        font-size: 0.8125rem;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 1.4;
        display: block !important;
        margin: 0 auto !important;
        padding: 0;
        text-align: center !important;
        width: 100% !important;
    }

    .bmv-logo .bmv-subtitle-small {
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        line-height: 1.4;
        display: block !important;
        margin: 0 auto !important;
        padding: 0;
        text-align: center !important;
        width: 100% !important;
    }

/* Form Elements - Estilo sobrio */
.bmv-form-label {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.bmv-input {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    color: #1a1a1a !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
    transition: border-color 0.15s ease !important;
}

    .bmv-input:focus {
        outline: none !important;
        border-color: #1a1a1a !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .bmv-input::placeholder {
        color: #9ca3af;
    }

/* Buttons - Estilo sobrio */
.bmv-btn-primary {
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 0.15s ease;
    width: 100%;
    text-align: center;
}

    .bmv-btn-primary:hover {
        background: #2d2d2d;
        border-color: #2d2d2d;
    }

    .bmv-btn-primary:active {
        background: #1a1a1a;
    }

/* Checkbox */
.bmv-checkbox {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

    .bmv-checkbox input[type="checkbox"] {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 1px solid #d1d5db;
        border-radius: 3px;
        background: #ffffff;
        cursor: pointer;
        transition: border-color 0.15s ease;
        position: relative;
    }

        .bmv-checkbox input[type="checkbox"]:checked {
            background: #1a1a1a;
            border-color: #1a1a1a;
        }

            .bmv-checkbox input[type="checkbox"]:checked::after {
                content: '✓';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: white;
                font-size: 12px;
                font-weight: bold;
            }

    .bmv-checkbox label {
        color: #374151;
        margin-left: 0.5rem;
        cursor: pointer;
        user-select: none;
        font-size: 0.875rem;
    }

/* Links */
.bmv-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

    .bmv-link:hover {
        color: #4a4a4a;
        text-decoration: underline;
    }

.bmv-links {
    margin-top: 2rem;
    text-align: center;
}

    .bmv-links p {
        margin: 0.75rem 0;
    }

/* Password Hint */
.bmv-password-hint {
    font-size: 0.8rem;
    color: var(--bmv-text-secondary);
    margin-top: 0.5rem;
}

/* Description Text */
.bmv-description {
    color: var(--bmv-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

/* Divider */
.bmv-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

    .bmv-divider::before,
    .bmv-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--bmv-border);
    }

    .bmv-divider span {
        padding: 0 1rem;
        color: var(--bmv-text-secondary);
        font-size: 0.9rem;
    }

/* External Logins */
.bmv-external-logins {
    margin-top: 1.5rem;
}

/* Dashboard Layout */
.bmv-dashboard {
    background: #ffffff;
    min-height: 100vh;
    position: relative;
}

.bmv-topbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bmv-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bmv-topbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bmv-accent) 0%, var(--bmv-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
}

.bmv-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Main Content */
.bmv-main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Cards */
.bmv-card {
    background: var(--bmv-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bmv-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .bmv-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        border-color: var(--bmv-accent);
    }

.bmv-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bmv-text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--bmv-accent) 0%, var(--bmv-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Message */
.bmv-status-message {
    background: #f8f9fa;
    border-left: 4px solid var(--bmv-accent);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--bmv-text-primary);
}

    .bmv-status-message.error {
        border-left-color: #ef4444;
        background: #fef2f2;
        color: #991b1b;
    }

/* Validation */
.validation-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bmv-login-card {
        padding: 2rem;
        margin: 1rem;
    }

    .bmv-logo-text {
        font-size: 2rem;
    }

    .bmv-topbar {
        padding: 1rem;
    }

    .bmv-main-content {
        padding: 1rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.bmv-loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Glow Effect */
.bmv-glow {
    position: relative;
}

    .bmv-glow::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, var(--bmv-accent), var(--bmv-secondary));
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
        filter: blur(10px);
    }

    .bmv-glow:hover::before {
        opacity: 0.7;
    }

/* ==================== NAVBAR STYLES ==================== */

/* Main Navbar */
.bmv-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--bmv-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    overflow: hidden;
}

.bmv-navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Logo */
.bmv-navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    z-index: 1001;
    flex-shrink: 0;
    min-width: 0;
}

.bmv-logo-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    min-width: 0;
    max-width: 100%;
}

.bmv-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #009B4D;
    letter-spacing: 0.12em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bmv-logo-subtitle {
    font-size: 0.55rem;
    color: var(--bmv-text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Navigation Menu */
.bmv-navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: space-between;
    margin-left: 2rem;
    min-width: 0;
    overflow: hidden;
}

.bmv-navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
    flex-shrink: 1;
}

/* Nav Links */
.bmv-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--bmv-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

    .bmv-nav-link svg {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }

    .bmv-nav-link:hover {
        color: var(--bmv-text-primary);
        background: rgba(0, 0, 0, 0.05);
    }

    .bmv-nav-link.active {
        color: #009B4D;
        background: rgba(0, 155, 77, 0.05);
    }

        .bmv-nav-link.active::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: #009B4D;
        }

/* User Menu */
.bmv-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    min-width: 0;
}


/* Culture Switcher in Navbar */
.bmv-culture-switcher {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    max-width: 180px;
    width: 100%;
}

.bmv-culture-selector {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.bmv-culture-dropdown {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

    .bmv-culture-dropdown .e-input-group,
    .bmv-culture-dropdown .e-input-group-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .bmv-culture-dropdown .e-input {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* Syncfusion Dropdown Styling for Light Theme */
.bmv-dropdown.e-ddl {
    background-color: #f8f9fa !important;
    border-color: var(--bmv-border) !important;
    color: var(--bmv-text-primary) !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

    .bmv-dropdown.e-ddl .e-input-group-icon,
    .bmv-dropdown.e-ddl .e-ddl-icon {
        color: var(--bmv-text-secondary) !important;
    }

    .bmv-dropdown.e-ddl:hover {
        border-color: var(--bmv-accent) !important;
        background-color: #ffffff !important;
    }

    .bmv-dropdown.e-ddl.e-input-focus {
        border-color: var(--bmv-accent) !important;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08) !important;
        background-color: #ffffff !important;
    }

/* Dropdown Popup */
.e-ddl.e-popup {
    background-color: #ffffff !important;
    border: 1px solid var(--bmv-border) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

    .e-ddl.e-popup .e-list-item {
        background-color: transparent !important;
        color: var(--bmv-text-primary) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

        .e-ddl.e-popup .e-list-item:hover {
            background-color: rgba(0, 0, 0, 0.05) !important;
            color: var(--bmv-accent) !important;
        }

        .e-ddl.e-popup .e-list-item.e-active {
            background-color: rgba(0, 0, 0, 0.08) !important;
            color: var(--bmv-accent) !important;
        }

.bmv-user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.bmv-user-link {
    border: 1px solid var(--bmv-border);
    max-width: 200px;
    min-width: 0;
    overflow: hidden;
}

    .bmv-user-link span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        max-width: 100%;
    }

.bmv-logout-form {
    margin: 0;
}

.bmv-logout-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
}

    .bmv-logout-btn:hover {
        background: rgba(239, 68, 68, 0.08);
        border-color: rgba(239, 68, 68, 0.3);
        color: #ef4444;
    }

/* Mobile Toggle */
.bmv-navbar-toggle {
    display: none;
}

.bmv-navbar-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

    .bmv-navbar-toggle-btn span {
        width: 100%;
        height: 3px;
        background: var(--bmv-text-primary);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

/* Layout Styles */
.bmv-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.bmv-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bmv-toolbar {
    background: rgba(245, 245, 245, 0.8);
    border-bottom: 1px solid var(--bmv-border);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.bmv-content {
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .bmv-navbar-menu {
        gap: 1rem;
        margin-left: 1rem;
    }

    .bmv-nav-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .bmv-culture-switcher {
        min-width: 0;
        max-width: 150px;
        flex-shrink: 1;
    }

    .bmv-culture-dropdown {
        max-width: 100% !important;
    }
}

@media (max-width: 992px) {
    .bmv-navbar-container {
        padding: 0 1rem;
        position: relative;
    }

    .bmv-navbar-toggle-btn {
        display: flex;
        order: 3;
    }

    .bmv-navbar-toggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

        .bmv-navbar-toggle:checked ~ .bmv-navbar-toggle-btn span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .bmv-navbar-toggle:checked ~ .bmv-navbar-toggle-btn span:nth-child(2) {
            opacity: 0;
        }

        .bmv-navbar-toggle:checked ~ .bmv-navbar-toggle-btn span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

    .bmv-navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 1rem;
        border-top: 1px solid var(--bmv-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    #navbar-toggle:checked ~ #navbar-menu,
    .bmv-navbar-toggle:checked ~ .bmv-navbar-menu {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 1rem;
    }

    .bmv-navbar-links {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .bmv-navbar-actions {
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid var(--bmv-border);
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .bmv-user-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .bmv-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
    }

    .bmv-culture-switcher {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .bmv-culture-dropdown {
        width: 100% !important;
        max-width: 100% !important;
    }

    .bmv-content {
        padding: 1rem;
    }

    .bmv-toolbar {
        padding: 0.75rem 1rem;
    }

    .bmv-logo-subtitle {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .bmv-navbar-container {
        padding: 0 0.75rem;
    }

    .bmv-logo-text {
        font-size: 1.1rem;
    }

    .bmv-logo-subtitle {
        font-size: 0.5rem;
        max-width: 120px;
    }

    .bmv-navbar-menu {
        top: 70px;
    }
}

@media (max-width: 480px) {
    .bmv-logo-text {
        font-size: 1rem;
    }

    .bmv-logo-subtitle {
        font-size: 0.45rem;
        max-width: 100px;
    }

    .bmv-nav-link {
        font-size: 0.875rem;
        padding: 0.875rem;
    }
}

/* ==================== CONFIRMATION PAGE STYLES ==================== */

/* Confirmation Icon */
.bmv-confirmation-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

    .bmv-confirmation-icon svg {
        color: #003366;
        opacity: 0.8;
    }

    .bmv-confirmation-icon.bmv-success-icon svg {
        color: #009B4D;
        opacity: 1;
    }

    .bmv-confirmation-icon.bmv-error-icon svg {
        color: #ef4444;
        opacity: 1;
    }

/* Confirmation Content */
.bmv-confirmation-content {
    text-align: center;
}

.bmv-confirmation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* Description Small */
.bmv-description-small {
    color: var(--bmv-text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Button as Link */
.bmv-btn-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

    .bmv-btn-link:hover {
        color: white;
        text-decoration: none;
    }


table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bmv-card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bmv-border);
}

    table thead {
        background: var(--bmv-bg-secondary);
    }

        table thead th {
            padding: 1rem 1.5rem;
            text-align: left;
            font-weight: 600;
            color: var(--bmv-text-primary);
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 0.05em;
            border-bottom: 2px solid var(--bmv-border);
        }

    table tbody tr {
        border-bottom: 1px solid var(--bmv-border);
        transition: background 0.2s ease;
    }

        table tbody tr:last-child {
            border-bottom: none;
        }

        table tbody tr:hover {
            background: var(--bmv-hover);
        }

    table tbody td {
        padding: 1rem 1.5rem;
        color: var(--bmv-text-primary);
        font-size: 0.95rem;
    }

