body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}


.theme-toggle-wrapper {
    width: 70px;
    height: 36px;
    position: relative;
}

.theme-toggle-checkbox {
    display: none;
}

.theme-toggle-label {
    background-color: #f1f1f1;
    border-radius: 50px;
    height: 100%;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.theme-toggle-label i {
    font-size: 14px;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Slider knob */
.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Move the knob on toggle */
.theme-toggle-checkbox:checked+.theme-toggle-label .toggle-slider {
    transform: translateX(34px);
}

/* === Light Theme === */
body.theme-light .theme-toggle-label {
    background-color: #f1f1f1;
}

body.theme-light .toggle-slider {
    background-color: #366fff;
}

body.theme-light .sun-icon {
    color: #7D4EFA;
}

body.theme-light .moon-icon {
    color: #aaa;
}

/* === Dark Theme === */
body.theme-dark .theme-toggle-label {
    background-color: #0A0A2A;
}

body.theme-dark .toggle-slider {
    background-color: #7D4EFA;
}

body.theme-dark .sun-icon {
    color: #666;
}

body.theme-dark .moon-icon {
    color: #FFE66D;
}

/* Button Styles */
.theme-toggle-button {
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
    margin-left: 1rem;
}

.theme-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    color: #FFA500;
    /* nice yellow for sun by default */
    transition: color 0.3s;
}

/* Light/Dark Theme specific icon colors */
body.theme-light .theme-icon svg {
    color: #002244;
}

/* moon icon - deep blue/navy for contrast */
body.theme-dark .theme-icon svg {
    color: #FFD700;
}

/* sun icon - bright yellow for contrast */

.theme-toggle-button:hover .theme-icon svg {
    transform: scale(1.1) rotate(-10deg);
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.2));
    transition: transform 0.2s, filter 0.2s;
}

.theme-icon {
    transition: opacity 0.3s;
}

.search-container {
    position: relative;
    margin: 0 1rem;
}


body.theme-light .search-input {
    border: 1px solid rgba(12, 12, 12, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    color: black;
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

body.theme-light .search-input:focus {
    outline: none;
    width: 350px;
}

body.theme-light .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #366fff;
}

body.theme-dark .search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    color: white;
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
}

body.theme-dark .search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    width: 350px;
}

body.theme-dark .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7d44f5;
}