:root {
    --bg-color: #f8f9fa;
    --tile-gradient-1: #ffffff;
    --tile-gradient-2: #f0f0f0;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-header: #34495e;
    --shadow-color: rgba(0,0,0,0.1);
    --shadow-hover: rgba(0,0,0,0.15);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --tile-gradient-1: #2d2d2d;
    --tile-gradient-2: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-header: #ffffff;
    --shadow-color: rgba(0,0,0,0.3);
    --shadow-hover: rgba(0,0,0,0.4);
}

body {
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.time-tile {
    background: linear-gradient(145deg, var(--tile-gradient-1), var(--tile-gradient-2));
    border-radius: 15px;
    box-shadow: 5px 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    max-width: 320px;
    margin: 0 auto;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
}

.time-tile:hover {
    transform: translateY(-5px);
    box-shadow: 7px 7px 20px var(--shadow-hover);
}

.time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', Courier, monospace;
    width: 250px;
    white-space: nowrap;
}

.time .period {
    font-size: 1.5rem;
}

.date {
    color: var(--text-secondary);
}

.location {
    color: var(--text-header);
    font-weight: 600;
    font-size: 1.1rem;
}

.country {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.theme-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.theme-switch-button {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--tile-gradient-1);
    box-shadow: 2px 2px 5px var(--shadow-color);
}

.theme-switch-button:hover {
    transform: scale(1.1);
}

h1 {
    color: var(--text-primary);
}

.sortable-ghost {
    opacity: 0.5;
    background: #c8ebfb;
}
@media (max-width: 768px) {
    .time {
        font-size: 2.3rem;
        width: 230px;
    }
    .time .period {
        font-size: 1.4rem;
    }
}

/* Settings panel styles */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--tile-gradient-1);
    box-shadow: -5px 0 15px var(--shadow-color);
    z-index: 1001;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.settings-panel.open {
    transform: translateX(0);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.settings-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.settings-section {
    margin-bottom: 1.5rem;
}

.settings-section-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--text-secondary);
}

.zone-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Replace the theme-switch with settings button */
.settings-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: var(--tile-gradient-1);
    box-shadow: 2px 2px 5px var(--shadow-color);
}

.settings-button:hover {
    transform: scale(1.1);
}

/* Add this new style for the theme switch label */
.theme-switch-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Fix the theme switch positioning */
.theme-switch-area {
    padding: 8px;
    border-radius: 8px;
    background-color: rgba(128, 128, 128, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-left: 0;
    position: relative;
    float: none;
} 