/* style.css */
/* style.css */
/* style.css */

/* General Styles (same as before with minor adjustments) */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f5; /* Default light background */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s; /* For theme transition */
    line-height: 1.6;
}

body.dark-theme {
    background-color: #121212; /* Dark background */
    color: #eee;
}

body.dark-theme .card {
    background-color: #1a1a1a;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.2),
        0 6px 6px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}

body.dark-theme h1, body.dark-theme h2 {
    color: #ddd;
}

body.dark-theme .history-item {
    background-color: #333;
    border-color: #444;
    color: #eee;
}
body.dark-theme .history-item.placeholder {
    background-color: #444;
    color: #ccc;
    border-color: #555;
}

body.dark-theme #stats-display {
    background-color: #333;
    color: #eee;
}

body.dark-theme .form-group label {
    color: #ccc;
}
body.dark-theme .form-group input[type="datetime-local"] {
    background-color: #444;
    color: #eee;
    border-color: #555;
}

body.dark-theme .feedback-message {
    background-color: #424242;
    color: #eee;
    border-color: #555;
}
body.dark-theme #import-feedback.success {
    background-color: #388e3c1a; /* Light green for success feedback in dark theme */
    color: #a5d6a7;
    border-color: #66bb6a;
}

body.dark-theme #import-feedback.error {
    background-color: #d32f2f1a; /* Light red for error feedback in dark theme */
    color: #ef9a9a;
    border-color: #e57373;
}

header {
    /* Removed background-color and box-shadow from header itself */
    padding: 0; /* Reduced header padding to 0 */
    text-align: center;
    width: 100%;
    margin-bottom: 0; /* Removed margin-bottom from header */
    /* Removed box-shadow from header */
    position: fixed; /* Make header fixed to bottom */
    bottom: 0;      /* Stick it to the bottom */
    left: 0;
    z-index: 100; /* Ensure it's above content */
    background-color: #f0f0f5; /* Set background color for tab bar */
    box-shadow: 0px -2px 5px rgba(0,0,0,0.05); /* Shadow above the tab bar */
}
body.dark-theme header {
    background-color: #212121; /* Darker header in dark theme */
    box-shadow: 0px -2px 5px rgba(255,255,255,0.05); /* Light shadow for dark theme */
    border-top: 1px solid #444; /* Add top border in dark theme */
    border-bottom: none; /* Remove bottom border if it was there */
}

main {
    max-width: 600px; /* Limit width for larger screens */
    width: 95%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 80px; /* Add padding at the bottom to avoid content underlapping the fixed header (tabs) */
}

.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.05),
        0 6px 6px rgba(0,0,0,0.03),
        inset 0 0 0 1px rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

h1, h2 {
    color: #555;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

/* Buttons - Soft Plastic Style (same as before) */
.main-button, .button {
    padding: 12px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.main-button {
    background: linear-gradient(145deg, #673ab7, #5e35b1);
}

.secondary-button {
    background: linear-gradient(145deg, #9c27b0, #8e24aa);
    color: #fff;
    margin: 15px 0;
    width: 100%;
}

.action-button {
    background: linear-gradient(145deg, #3f51b5, #3949ab);
    color: #fff;
}

.save-button {
    background: linear-gradient(145deg, #4caf50, #43a047);
    color: #fff;
}

.cancel-button {
    background: linear-gradient(145deg, #f44336, #e53935);
    color: #fff;
}

.main-button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px rgba(0,0,0,0.15),
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.main-button:active, .button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        0 1px 2px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.hidden {
    display: none !important;
}

/* Form styles (same as before) */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #777;
}
body.dark-theme .form-group label {
    color: #ccc;
}

.form-group input[type="datetime-local"] {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
body.dark-theme .form-group input[type="datetime-local"] {
    border-color: #555;
    background-color: #333;
    color: #eee;
}

/* Add styles for calendar picker in dark mode */
body.dark-theme input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.form-actions button {
    margin-left: 10px;
}

/* History list (same as before with dark theme adjustments) */
#sleep-history-list {
    list-style: none;
    padding: 0;
}

.history-item {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
body.dark-theme .history-item {
    background-color: #333;
    border-color: #444;
    color: #eee;
    box-shadow: 2px 2px 5px rgba(255,255,255,0.03); /* Light shadow for dark theme */
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item .history-details {
    flex-grow: 1;
}

.history-item .history-actions {
    flex-shrink: 0;
    margin-left: 15px;
    display: flex; /* For edit/delete buttons side-by-side */
    gap: 5px;
}

.history-item .edit-button, .history-item .delete-button {
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
    transition: all 0.2s ease;
    color: #673ab7;
}
.history-item .delete-button {
    background: linear-gradient(145deg, #ffebee, #ffcdd2);
    color: #f44336;
}
body.dark-theme .history-item .edit-button {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    color: #9575cd;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}
body.dark-theme .history-item .delete-button {
    background: linear-gradient(145deg, #311111, #1a0000);
    color: #e57373;
}

.history-item .edit-button:hover, .history-item .delete-button:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.history-item.placeholder {
    text-align: center;
    font-style: italic;
    color: #888;
    background-color: #f0f0f0;
    box-shadow: none;
    border: 1px dashed #ccc;
}
body.dark-theme .history-item.placeholder {
    background-color: #444;
    color: #ccc;
    border-color: #555;
}

/* Stats section - moved to history tab card */
#stats-display {
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px; /* Add margin to separate from history list */
    transition: background-color 0.3s, color 0.3s;
}
body.dark-theme #stats-display {
    background-color: #333;
    color: #eee;
}

/* Chart Styling */
#sleepChart {
    max-height: 300px;
    height: auto;
    width: 100%;
    margin: 20px 0;
    padding: 10px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    border-radius: 15px;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.05),
        inset 0 -2px 4px rgba(255,255,255,0.5);
}

body.dark-theme #sleepChart {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 -2px 4px rgba(255,255,255,0.05);
}

/* Data actions section - moved to settings tab */
.data-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

#import-data-input {
    margin-top: 10px; /* Add some space below the import button if wrapped */
}

#import-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background-color: #e8f5e9; /* Light green for success feedback */
    color: #388e3c;
    border: 1px solid #c8e6c9;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

#import-feedback.error {
    background-color: #ffebee; /* Light red for error feedback */
    color: #d32f2f;
    border: 1px solid #ef9a9a;
}

footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #777;
    width: 100%;
    transition: color 0.3s;
}
body.dark-theme footer {
    color: #bbb;
}

/* Tab Navigation Styles */
header nav {
    width: 100%;
    display: flex;
    justify-content: center;
    /* Removed background-color and box-shadow from nav - using header for background now */
    /* background-color: #f0f0f5; */
    /* box-shadow: 0 1px 2px rgba(0,0,0,0.05); */
    transition: background-color 0.3s;
}
body.dark-theme header nav {
    /* background-color: #212121; */ /* Darker nav in dark theme */
    /* box-shadow: 0 1px 2px rgba(255,255,255,0.05); */
}

#tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%; /* Tabs take full width */
    justify-content: space-around; /* Distribute tabs evenly */
}

.tab {
    padding: 15px 20px; /* Slightly increased padding for bottom tabs */
    cursor: pointer;
    border-bottom: none; /* Remove bottom border for active state underline (we'll adjust) */
    transition: border-bottom-color 0.3s, color 0.3s;
    color: #555;
    border-top: 2px solid transparent; /* For active state underline at top */
    text-align: center; /* Center text in tab */
    flex-grow: 1; /* Allow tabs to expand to fill space */
}
body.dark-theme .tab {
    color: #ccc;
}

.tab.active-tab {
    border-top-color: #673ab7; /* Active tab underline color at top */
    color: #333; /* Active tab text color */
    font-weight: bold;
    border-bottom: none; /* Ensure no bottom border */
}
body.dark-theme .tab.active-tab {
    border-top-color: #9575cd; /* Lighter purple active underline in dark theme */
    color: #eee; /* Active tab text color in dark theme */
    border-bottom: none; /* Ensure no bottom border */
}

.tab-content {
    display: none; /* Initially hide all tab contents */
}

.tab-content.active {
    display: block; /* Show active tab content */
}

/* Home Tab Specific Styles */
.big-button {
    font-size: 1.3rem;
    padding: 15px 30px;
    margin-bottom: 15px;
    display: block;
    width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
}

#tracking-status {
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
    color: #777;
}
body.dark-theme #tracking-status {
    color: #bbb;
}

/* New round button style for check in/out */
#start-sleep-btn, #wake-up-btn {
    width: 80vw;
    height: 80vw;
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    background: linear-gradient(145deg, #673ab7, #5e35b1);
    box-shadow: 
        0 10px 20px rgba(103, 58, 183, 0.2),
        0 6px 6px rgba(103, 58, 183, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

#start-sleep-btn:hover, #wake-up-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 15px 25px rgba(103, 58, 183, 0.3),
        0 8px 8px rgba(103, 58, 183, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

#start-sleep-btn:active, #wake-up-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 
        0 5px 10px rgba(103, 58, 183, 0.2),
        0 3px 3px rgba(103, 58, 183, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

body.dark-theme #start-sleep-btn, body.dark-theme #wake-up-btn {
    background: linear-gradient(145deg, #9575cd, #7e57c2);
    box-shadow: 
        0 10px 20px rgba(149, 117, 205, 0.3),
        0 6px 6px rgba(149, 117, 205, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Fix dark theme button styles */
body.dark-theme .main-button {
    background: linear-gradient(145deg, #9575cd, #7e57c2);
}

body.dark-theme .secondary-button {
    background: linear-gradient(145deg, #ba68c8, #ab47bc);
}

body.dark-theme .action-button {
    background: linear-gradient(145deg, #5c6bc0, #3f51b5);
}

body.dark-theme .save-button {
    background: linear-gradient(145deg, #66bb6a, #4caf50);
}

body.dark-theme .cancel-button {
    background: linear-gradient(145deg, #ef5350, #f44336);
}

/* Add sorting controls to history section */
.history-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .history-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Settings Tab Specific Styles */
.setting-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
body.dark-theme .setting-group {
    border-bottom-color: #444;
}

.setting-group h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #555;
}
body.dark-theme .setting-group h3 {
    color: #ddd;
}

/* Theme Switcher Styles */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center; /* Center the switcher */
}

.theme-label {
    color: #777;
}
body.dark-theme .theme-label {
    color: #ccc;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider - the moving part */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #673ab7;
}

input:focus + .slider {
    box-shadow: 0 0 1px #673ab7;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Data Management Section Styles */
.data-management {
    margin-top: 25px;
    padding: 20px;
    border-radius: 15px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
body.dark-theme .data-management {
    background-color: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.data-management h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #555;
}
body.dark-theme .data-management h3 {
    color: #ddd;
}

.data-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Google Drive Backup Section Styles */
#google-drive-section {
    position: relative;
    overflow: hidden;
}

.backup-frequency {
    margin: 15px 0;
}

#backup-frequency-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: all 0.3s ease;
}
body.dark-theme #backup-frequency-select {
    background-color: #333;
    border-color: #555;
    color: #eee;
}

#backup-frequency-select:focus {
    outline: none;
    border-color: #673ab7;
    box-shadow: 0 0 0 2px rgba(103, 58, 183, 0.2);
}
body.dark-theme #backup-frequency-select:focus {
    border-color: #9575cd;
    box-shadow: 0 0 0 2px rgba(149, 117, 205, 0.2);
}

/* Google Drive Status Message */
#google-drive-status {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    background-color: #f0f0f0;
    color: #555;
}
body.dark-theme #google-drive-status {
    background-color: #333;
    color: #ddd;
}

#google-drive-status.show {
    opacity: 1;
    transform: translateY(0);
}

#google-drive-status.connected {
    background-color: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #4caf50;
}
body.dark-theme #google-drive-status.connected {
    background-color: #1b5e20;
    color: #a5d6a7;
    border-left: 4px solid #66bb6a;
}

#google-drive-status.syncing {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}
body.dark-theme #google-drive-status.syncing {
    background-color: #0d47a1;
    color: #90caf9;
    border-left: 4px solid #42a5f5;
}

#google-drive-status.error {
    background-color: #ffebee;
    color: #d32f2f;
    border-left: 4px solid #f44336;
}
body.dark-theme #google-drive-status.error {
    background-color: #b71c1c;
    color: #ef9a9a;
    border-left: 4px solid #e57373;
}

/* Google Drive Buttons */
#google-drive-login-btn, #google-drive-sync-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#google-drive-login-btn::before, #google-drive-sync-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#google-drive-login-btn:active::before, #google-drive-sync-btn:active::before {
    width: 300px;
    height: 300px;
}

#google-drive-login-btn.connected {
    background: linear-gradient(145deg, #f44336, #e53935);
}

#google-drive-sync-btn {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: visibility 0s, opacity 0.3s ease, transform 0.3s ease;
}

#google-drive-sync-btn.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Sync Animation */
@keyframes sync-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.syncing-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: sync-spin 1s linear infinite;
}

/* Last Backup Time */
.last-backup-time {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
}
body.dark-theme .last-backup-time {
    color: #aaa;
}

/* Responsive adjustments for settings tab */
@media (max-width: 768px) {
    .data-management {
        padding: 15px;
    }
    
    .data-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    #google-drive-login-btn, #google-drive-sync-btn {
        width: 100%;
    }
}

/* Feedback Message Animation */
.feedback-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feedback-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.feedback-message.success {
    background: linear-gradient(145deg, #4caf50, #43a047);
}

.feedback-message.error {
    background: linear-gradient(145deg, #f44336, #e53935);
}

/* History Item Animations */
.history-item {
    transition: all 0.3s ease;
}

.history-item.deleting {
    transform: translateX(100%);
    opacity: 0;
}

.history-item.editing {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Different colors for sleep tracking buttons */
#start-sleep-btn {
    background: linear-gradient(145deg, #673ab7, #5e35b1);
}

#wake-up-btn {
    background: linear-gradient(145deg, #4caf50, #43a047);
}

body.dark-theme #start-sleep-btn {
    background: linear-gradient(145deg, #9575cd, #7e57c2);
}

body.dark-theme #wake-up-btn {
    background: linear-gradient(145deg, #66bb6a, #4caf50);
}

/* Tab Icons */
.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tab::before {
    font-size: 1.2em;
    margin-bottom: 2px;
}

.tab[data-tab="home"]::before {
    content: "🏠";
}

.tab[data-tab="history"]::before {
    content: "📊";
}

.tab[data-tab="settings"]::before {
    content: "⚙️";
}

/* Edit Button Icon */
.edit-button::before {
    content: "✏️";
    margin-right: 4px;
}

/* Add styles for pagination and month selector */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #673ab7, #5e35b1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.page-info {
    color: #666;
    font-size: 0.9rem;
}

body.dark-theme .page-info {
    color: #ccc;
}

.month-selector {
    margin-bottom: 15px;
}

.month-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(145deg, #673ab7, #5e35b1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 
        0 4px 6px rgba(103, 58, 183, 0.2),
        0 1px 3px rgba(103, 58, 183, 0.1);
    transition: all 0.2s ease;
}

.month-selector select:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px rgba(103, 58, 183, 0.3),
        0 2px 4px rgba(103, 58, 183, 0.2);
}

.month-selector select:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(103, 58, 183, 0.2),
        0 1px 2px rgba(103, 58, 183, 0.1);
}

body.dark-theme .month-selector select {
    background: linear-gradient(145deg, #9575cd, #7e57c2);
    box-shadow: 
        0 4px 6px rgba(149, 117, 205, 0.3),
        0 1px 3px rgba(149, 117, 205, 0.2);
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #673ab7, #5e35b1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 
        0 4px 6px rgba(103, 58, 183, 0.2),
        0 1px 3px rgba(103, 58, 183, 0.1);
    transition: all 0.2s ease;
}

.sort-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 8px rgba(103, 58, 183, 0.3),
        0 2px 4px rgba(103, 58, 183, 0.2);
}

.sort-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(103, 58, 183, 0.2),
        0 1px 2px rgba(103, 58, 183, 0.1);
}

.sort-button.active {
    background: linear-gradient(145deg, #4caf50, #43a047);
    box-shadow: 
        0 4px 6px rgba(76, 175, 80, 0.2),
        0 1px 3px rgba(76, 175, 80, 0.1);
}

body.dark-theme .sort-button {
    background: linear-gradient(145deg, #9575cd, #7e57c2);
    box-shadow: 
        0 4px 6px rgba(149, 117, 205, 0.3),
        0 1px 3px rgba(149, 117, 205, 0.2);
}

body.dark-theme .sort-button.active {
    background: linear-gradient(145deg, #66bb6a, #4caf50);
    box-shadow: 
        0 4px 6px rgba(102, 187, 106, 0.3),
        0 1px 3px rgba(102, 187, 106, 0.2);
}