/* css/light-dark-themes.css */

/* --- Core Theme Variables (Optional, but good practice) --- */
:root {
    --background-light: #f4f7f6;
    --text-light: #333;
    --component-bg-light: #fff;
    --border-light: #e0e0e0;

    --background-dark: #282c34;
    --text-dark: #abb2bf;
    --component-bg-dark: #3e4452;
    --border-dark: #4a5160;
    --highlight-dark: #61afef;
}

/* --- Base Body Styling --- */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--background-light);
    color: var(--text-light);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh; /* Ensure body takes full viewport height */
}

body.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

/* --- Theme Toggle Floating Button --- */
/* Container for the button, to ensure consistent positioning if needed elsewhere */
/* If you always want it bottom-right, this outer container might not be strictly necessary */
/* and the button itself can be position: fixed. */
/* For now, let's assume the button is directly added or its container is styled. */

.theme-toggle-floating-button {
    position: fixed;
    bottom: 30px;  /* Default position, can be overridden */
    right: 30px;   /* Default position, can be overridden */
    z-index: 1000; /* High z-index to stay on top */
    
    display: flex; /* Ensure icon inside is centered */
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: var(--component-bg-light);
    color: #555; /* Icon color for light theme */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.theme-toggle-floating-button:hover {
    background-color: #f0f0f0; /* Light theme hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.theme-toggle-floating-button i {
    font-size: 20px;
    transition: transform 0.3s ease; /* For icon rotation if desired */
}

/* Dark Mode for the Button Itself */
body.dark-mode .theme-toggle-floating-button {
    background-color: var(--component-bg-dark);
    color: var(--text-dark); /* Icon color for dark theme */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .theme-toggle-floating-button:hover {
    background-color: #4a5160; /* Dark theme hover */
    color: var(--highlight-dark);
}


/* --- Optional: General Dark Mode Component Adjustments --- */
/* You can add more general rules here for common elements if needed */
/* For example:
body.dark-mode .some-common-container,
body.dark-mode .some-card {
    background-color: var(--component-bg-dark);
    border-color: var(--border-dark);
}

body.dark-mode a {
    color: var(--highlight-dark);
}
*/

/* Responsive adjustments for the button if needed */
@media (max-width: 768px) {
    .theme-toggle-floating-button {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    .theme-toggle-floating-button i {
        font-size: 18px;
    }
}