/* ============================================
   DARK MODE - SKILLTRACK
   ============================================ */

.dark-mode-content {
    background-color: #181c24 !important;
    color: #f1f1f1 !important;
}

.dark-mode-content a, 
.dark-mode-content .text-primary {
    color: #90caf9 !important;
}

.dark-mode-content .card, 
.dark-mode-content .alert, 
.dark-mode-content .table {
    background-color: #23272f !important;
    color: #f1f1f1 !important;
}

.dark-mode-content input, 
.dark-mode-content textarea, 
.dark-mode-content select {
    background-color: #fff !important;
    color: #222 !important;
    border-color: #444 !important;
}

.dark-mode-content .form-label, 
.dark-mode-content label {
    color: #f1f1f1 !important;
}

/* ============================================
   THEME SWITCH - SKILLTRACK
   ============================================ */

.theme-switch {
    display: inline-block;
    position: relative;
    width: 52px !important;
    height: 30px !important;
    user-select: none;
    margin: 0;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.theme-switch .slider:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.theme-switch input:checked + .slider:before {
    transform: translateX(22px);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    box-shadow: 0 2px 8px rgba(226, 232, 240, 0.4);
}

.theme-switch input:checked + .slider {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-color: rgba(255,255,255,0.2);
}

.theme-switch .icon-sun, 
.theme-switch .icon-moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.theme-switch .icon-sun {
    left: 7px;
    color: #fbbf24;
    opacity: 1;
}

.theme-switch .icon-moon {
    right: 7px;
    color: #e2e8f0;
    opacity: 0;
}

.theme-switch input:checked ~ .icon-sun {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

.theme-switch input:checked ~ .icon-moon {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.theme-switch:hover .slider {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(255,255,255,0.1);
}
