/* Theme Switch Styles */
.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: block !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 70px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px;
    border-radius: 18px;
}

.theme-toggle-label {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 15px;
    cursor: pointer;
    padding: 0 8px;
}

.theme-toggle-label::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#theme-toggle-input {
    display: none;
}

#theme-toggle-input:checked + .theme-toggle-label::before {
    transform: translateX(34px);
}

.theme-toggle-label .fa-sun {
    color: #ffd43b;
    font-size: 16px;
    z-index: 1;
}

.theme-toggle-label .fa-moon {
    color: #a9b8ff;
    font-size: 16px;
    z-index: 1;
}

/* iOS Theme Toggle Switch */
.theme-toggle-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 34px;
    padding: 0;
    margin: 0;
}

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

.theme-toggle-label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    cursor: pointer;
    overflow: hidden;
}

.theme-toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e4e4e4;
    border-radius: 34px;
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-toggle-thumb {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.theme-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 16px;
    transition: 0.3s;
}

.theme-toggle-icon.moon {
    left: 8px;
    opacity: 0.7;
    font-size: 14px;
}

.theme-toggle-icon.sun {
    right: 8px;
    opacity: 0.8;
    font-size: 14px;
}

/* Checked state */
.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-track {
    background-color: #4cd964; /* iOS green color - more vibrant */
}

.theme-toggle-input:checked + .theme-toggle-label .theme-toggle-thumb {
    transform: translateX(26px);
}

/* Focus state for accessibility */
.theme-toggle-input:focus + .theme-toggle-label {
    box-shadow: 0 0 1px #4cd964;
}

/* Light theme variables */
[data-theme="light"] {
    --background-color: #f5f5f7;
    --text-color: #1d1d1f;
    --window-bg: rgba(255, 255, 255, 0.95);
    --dock-bg: rgba(205, 205, 205, 0.3);
    --dock-border: rgba(190, 190, 190, 0.4);
    --apple-blue: #ff3b30;
    --apple-green: #34c759;
    --apple-gray: #86868b;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-hover-bg: rgba(255, 255, 255, 1);
    --card-border: rgba(0, 0, 0, 0.1);
    --card-hover-border: rgba(0, 0, 0, 0.15);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
} 