:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f2f2f2;
    --text-color: #333;
    --card-background: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #2980b9;
    --secondary-color: #27ae60;
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --card-background: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23d9d9d9" fill-opacity="0.4"%3E%3Crect x="50" y="50" width="50" height="50" /%3E%3Crect width="50" height="50" /%3E%3C/g%3E%3C/svg%3E');
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    padding: 1rem;
}

#calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
}

.day, .week, .month, .year {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 10px;
    min-height: 120px;
    box-shadow: 0 1px 3px var(--shadow-color);
    position: relative;
    transition: transform 0.2s;
}

.day:hover, .week:hover, .month:hover, .year:hover {
    transform: translateY(-5px);
}

.day-header, .week-header, .month-header, .year-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.event {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--card-background);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#add-event-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#add-event-button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

#login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

#view-switcher button.active {
    background-color: #2980b9;
}
