/* Theme variables */
:root {
    --theme-transition: all 0.3s ease;
}

/* Theme switcher styles */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--theme-transition);
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--bs-primary);
}

.theme-icon {
    font-size: 1.2rem;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .jumbotron {
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-secondary) 100%);
}

[data-bs-theme="dark"] .form-floating > label {
    color: var(--bs-secondary);
}

[data-bs-theme="dark"] .cf-turnstile iframe {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.8);
}

/* Form styles */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control-plaintext ~ label,
.form-floating > .form-select ~ label {
    color: var(--bs-secondary);
}

/* Alert animations */
.alert {
    transition: var(--theme-transition);
}

/* Button hover effects */
.btn-success {
    transition: var(--theme-transition);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Spinner animation */
.spinner-border-sm {
    animation: spinner-border 0.75s linear infinite;
}

/* Container responsiveness */
@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
    }

    .theme-btn {
        width: 35px;
        height: 35px;
    }

    .display-5 {
        font-size: 2rem;
    }
}
