/* General Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

/* Welcome Message */
#welcome-message {
    max-width: 500px;
    margin: 15px auto;
    padding: 15px;
    background: #f0f8ff;
    border: 2px solid #007bff;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

h2 {
    font-size: 20px;
    color: #007bff;
    margin-top: 15px;
    font-weight: bold;
}

/* Buttons */
button {
    padding: 10px 15px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease-in-out, transform 0.1s, color 0.3s;
}

button:hover {
    background: #0056b3;
    transform: scale(1.05);
    color: #fff;
}

/* Calendar Layout */
#calendar-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Modern Month Box */
.month {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.month:hover {
    transform: scale(1.02);
}

/* Week Header */
.week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    background: #f0f0f0;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 14px;
}

/* Weekday Names */
.week-day {
    text-align: center;
    font-size: 14px;
    color: #555;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 5px;
}

/* Individual Day Cells */
.day {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    background: #ffffff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Day Hover Effect */
.day:hover {
    transform: scale(1.1);
    background: rgba(0, 128, 0, 0.2);
    /* Subtle green highlight */
}

/* Empty Days (For Alignment) */
.empty {
    visibility: hidden;
}

/* Click Count */
.click-count {
    font-size: 12px;
    color: #333;
    opacity: 0.8;
}

/* Dark Mode */
.dark-mode {
    background: #222;
    color: #fff;
}

.dark-mode #welcome-message {
    background: #333;
    border-color: #ff9800;
}

.dark-mode button {
    background: #444;
    color: #fff;
}

.dark-mode .month {
    background: #2a2a2a;
    box-shadow: 4px 4px 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .week-header {
    background: #444;
}

.dark-mode .week-day {
    color: #ccc;
}

.dark-mode .day {
    background: #555;
    color: #fff;
}

.dark-mode .day:hover {
    background: rgba(0, 255, 0, 0.3);
}

/* Bullet Points - Centered Lists */
ul,
ol {
    list-style-position: inside;
    padding-left: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

/* Sidebar Styles */
#left-sidebar,
#right-sidebar {
    width: 220px;
    /* Increased width */
    padding: 20px;
    background: #f8f8f8;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin: 10px;
    /* Added margin to move from screen edge */
}

#left-sidebar {
    float: left;
}

#right-sidebar {
    float: right;
}

/* Dark Mode for Sidebar */
.dark-mode #left-sidebar,
.dark-mode #right-sidebar,
.dark-mode #footer {
    background: #333;
    color: #fff;
}

/* Footer Styles */
#footer {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: calc(100% - 40px);
    /* Adjust width to fit between sidebars */
    margin-left: auto;
    margin-right: auto;
    height: 25%;
    border-radius: 12px;
}

.dark-mode #footer {
    background: #333;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 600px) {
    .month {
        width: 100%;
    }

    button {
        font-size: 14px;
        padding: 8px 12px;
    }

    #welcome-message {
        max-width: 90%;
    }

    #left-sidebar,
    #right-sidebar {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }
}