/* Theme Toggle Button Styling */
.theme-toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.theme-toggle {
    background: linear-gradient(40deg, #fff, #eee);
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    height: 30px;
    width: 60px;
    transition: all 0.3s ease;
}

.theme-toggle.dark {
    background: linear-gradient(40deg, #273746, #1a2a3a);
    border-color: #333;
}

.theme-toggle .toggle-icon {
    color: #FFD700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.theme-toggle .toggle-icon.moon {
    color: #ffffff;
    opacity: 0.7;
}

.theme-toggle .toggle-track {
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 26px;
    width: 26px;
    position: absolute;
    left: 2px;
    top: 2px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.theme-toggle.dark .toggle-track {
    left: 32px;
    background-color: #1a2a3a;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* Dark Theme Styles */
body.dark-theme {
    background-color: #000000;
    color: #ffffff;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body.dark-theme .container {
    background-color: #121212;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

body.dark-theme .search-container {
    background-color: #1e1e1e;
}

body.dark-theme .search-box input {
    background-color: #2a2a2a;
    color: #ffffff;
    border-color: #3a3a3a;
}

body.dark-theme .search-box button {
    background-color: #E50914;
    color: white;
}

body.dark-theme .stat-card {
    background-color: #232323;
    border-color: #2a2a2a;
    color: #f0f0f0;
}

body.dark-theme .stat-card h3 {
    color: #ffffff;
}

body.dark-theme .balance-container,
body.dark-theme .detailed-balance {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-theme .balance-card {
    background-color: #232323;
    border-color: #2a2a2a;
}

body.dark-theme .balance-title {
    color: #ffffff;
}

body.dark-theme .footer {
    color: #cccccc;
}

body.dark-theme a {
    color: #ff5555;
}

/* Animation for theme transition */
.theme-transition {
    animation: theme-fade 0.5s ease;
}

@keyframes theme-fade {
    0% {
        opacity: 0.8;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
} 