/* Complete theme icon fix - new approach with simpler classes */

/* Hide all icons by default */
.single-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Icon container styling - Perfect centering */
.icon-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Moon icon in light mode - Perfect centering */
[data-theme="light"] .moon-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #f59e0b !important;
    font-size: 18px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
}

/* Sun icon in dark mode - Perfect centering */
[data-theme="dark"] .sun-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #fbbf24 !important;
    font-size: 18px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
}

/* Add Font Awesome icons via ::before */
.moon-icon::before {
    content: "\f186" !important; /* Moon icon */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.sun-icon::before {
    content: "\f185" !important; /* Sun icon */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Button styling - Ensure proper centering */
.btn-theme {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

[data-theme="dark"] .btn-theme {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(251, 191, 36, 0.3);
}

.btn-theme:hover {
    transform: scale(1.08);
}

.btn-theme:hover .single-icon {
    color: white !important;
}