:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #fcfcfc;
    --text-primary: #0D1B2A;
    --text-secondary: #5a6a7a;
    --border-color: #f0f0f0;
    --accent-color: #2EB0D5;
    --success-color: #64C766;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --table-header: #f8f9fa;
    --statges-gradient: linear-gradient(135deg, #2EB0D5 0%, #64C766 100%);
    --navy-blue: #0D1B2A;
}

[data-theme="dark"] {
    --text-muted: #e0e0e0 !important;
    --bg-primary: #0D1B2A;
    --bg-secondary: #162433;
    --bg-tertiary: #1b2a3a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: #2a3a4a;
    --accent-color: #2EB0D5;
    --success-color: #64C766;
    --sidebar-bg: #0D1B2A;
    --card-bg: #0D1B2A;
    --table-header: #162433;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 300 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text {
    font-weight: 500 !important;
    letter-spacing: -0.02em;
}

strong,
b {
    font-weight: 500 !important;
}

/* Fixed width for desktop (Boxed Layout) */
.layout-boxed {
    background-color: var(--bg-tertiary) !important;
}

.layout-boxed .wrapper {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"].layout-boxed {
    background-color: #000000 !important;
}


.content-wrapper {
    background-color: var(--bg-primary) !important;
}

.main-header {
    background-color: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.main-sidebar {
    background-color: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border-color) !important;
}

.brand-link {
    background-color: var(--sidebar-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.sidebar {
    background-color: var(--sidebar-bg) !important;
}

.nav-sidebar .nav-link {
    color: var(--text-secondary) !important;
    border-radius: 0 20px 20px 0 !important;
}

.nav-sidebar .nav-link.active {
    background: var(--statges-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(46, 176, 213, 0.3) !important;
}

.nav-sidebar .nav-link.active i,
.nav-sidebar .nav-link.active p {
    color: #ffffff !important;
}

.card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

.table {
    font-weight: 300 !important;
    color: var(--text-primary) !important;
}

.table thead th {
    background-color: var(--table-header) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary) !important;
    border-top: none !important;
    padding: 12px 15px !important;
}

.small-box {
    border-radius: 12px !important;
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.3s ease;
}

.small-box:hover {
    transform: translateY(-5px);
}

.small-box .inner h3 {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    background: var(--statges-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .small-box .inner h3 {
    background: var(--accent-color);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.small-box .icon i {
    color: var(--border-color) !important;
    opacity: 0.3;
}

.nav-sidebar .nav-link p {
    font-weight: 300 !important;
}

.nav-sidebar .nav-link.active p {
    font-weight: 500 !important;
}

/* Traffic Light Dots */
.dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.dot.green {
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(100, 199, 102, 0.4), inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.dot.yellow {
    background: #FFB347;
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.4), inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.dot.red {
    background: #FF4B2B;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.4), inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.dot.gray {
    background: #cbd5e1;
}

.btn-primary {
    background: var(--statges-gradient) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.btn-success {
    background-color: var(--success-color) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.btn-green {
    background-color: var(--success-color) !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-green i {
    color: #ffffff !important;
}

.navbar-nav .nav-link,
.navbar-nav .nav-link i {
    color: #4a4a4a !important;
    /* Gris oscuro */
}

.status-card {
    background: var(--card-bg);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.help-banner {
    background-color: var(--bg-tertiary) !important;
    border-left: 4px solid var(--accent-color) !important;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.btn-monochrome {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: 0.825rem;
}

.btn-monochrome:hover {
    background-color: var(--border-color) !important;
}

/* Password Strength Indicator */
.password-requirements {
    font-size: 0.75rem;
    margin-top: 8px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
}

.password-requirements.active {
    display: block;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-item i {
    font-size: 0.8rem;
    width: 14px;
}

.requirement-item.valid {
    color: #10b981 !important;
}

.requirement-item.valid i {
    color: #10b981 !important;
}

.requirement-item.valid i::before {
    content: "\f00c" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* Dark mode adjustments for requirements */
[data-theme="dark"] .password-requirements {
    background: #2a2c2e;
}