* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f4f7fb;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    text-align: center;
}

.user-pattern {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 1);
}

.user-bojan {
    color: #D14A4A; /* Dark Coral */
}

.user-goce {
    color: #0061F2; /* Royal Blue */
}

.user-pavle {
    color: #1B9E4D; /* Forest Green */
}

.user-laste {
    color: #F57C00; /* Vibrant Orange */
}

.page {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.calendar-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.arrow-btn {
    font-size: 22px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

.arrow-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.day.sat, .day.sun {
    background-color: #f7d56d;
    border: 1px solid #f1c14e;
    color: #333;
}

.day.sat:hover, .day.sun:hover {
    background-color: #f5c248;
}

.day {
    width: 8rem;
    height: 6rem;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.day:hover {
    background-color: #f9f9f9;
    transform: scale(1.05);
}

.day .date {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.calendar-header-day {
    background-color: #c6c9cf;
    font-size: 20px;
    font-weight: bold;
    padding: 6px 0;
    color: #555;
    border-radius: 4px;
}

.calendar-header-day:hover {
    background-color: #b0b3b8;
}

.day.blank {
    background-color: #f9f9f9;
}

.day.blank:hover {
    background-color: #e0e0e0;
}

.input-container {
    text-align: center;
    margin-top: 20px;
}

.input-container input {
    padding: 12px;
    margin: 5px;
    font-size: 16px;
    width: 150px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-container input:focus {
    border-color: #f39c12;
}

.input-container button {
    padding: 12px 25px;
    background-color: #f39c12;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.input-container button:hover {
    background-color: #e67e22;
}

@media (max-width: 1000px) {
    .day {
        width: 6rem;
        height: 4.5rem;
        font-size: 16px;
    }

    .day .date {
        font-size: 18px;
    }

    .calendar-header-day {
        font-size: 16px;
    }

    #calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }

    .arrow-btn {
        font-size: 20px;
        width: 30px;
        height: 30px;
    }

    .input-container input {
        font-size: 14px;
        width: 100px;
    }

    .input-container button {
        font-size: 14px;
    }
}

@media (max-width: 740px) {
    .day {
        width: 3rem;
        height: 2rem;
        font-size: 8px;
    }

    .day .date {
        font-size: 10px;
    }

    .calendar-header-day {
        font-size: 10px;
    }

    .arrow-btn {
        font-size: 18px;
        width: 28px;
        height: 28px;
    }

    .input-container input {
        font-size: 12px;
        width: 80px;
    }

    .input-container button {
        font-size: 12px;
    }
}

@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .page {
        background-color: #2c2f36;
    }

    .calendar-header {
        color: #e0e0e0;
    }

    .calendar-container {
        background-color: #333;
    }

    #calendar {
        background-color: #444;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    }

    .day {
        background-color: #555;
        border: 1px solid #666;
        color: #e0e0e0;
    }

    .day.sat, .day.sun {
        background-color: #f3c85c;
        border: 1px solid #d6a144;
        color: #333;
    }

    .day.sat:hover, .day.sun:hover {
        background-color: #e0b14c;
    }

    .day.sat .date, .day.sun .date {
        color: #333;
    }

    .day:hover {
        background-color: #666;
    }

    .day .date {
        color: #fff;
    }

    .calendar-header-day {
        background-color: #333;
        color: #e0e0e0;
    }

    .calendar-header-day:hover {
        background-color: #444;
    }

    .day.blank {
        background-color: #444;
    }

    .input-container input {
        background-color: #555;
        color: #e0e0e0;
        border-color: #777;
    }

    .input-container input:focus {
        border-color: #f39c12;
    }

    .input-container button {
        background-color: #f39c12;
        color: white;
    }

    .input-container button:hover {
        background-color: #e67e22;
    }

    .user-pattern {
        text-shadow: 0 2px 2px rgba(0, 0, 0, 1), -1px 1px 2px rgba(0, 0, 0, 1), 1px 1px 2px rgba(0, 0, 0, 1);
    }

    .user-bojan {
        color: #FF6F61; /* Soft Coral */
    }

    .user-goce {
        color: #4D9CFA; /* Sky Blue */
    }

    .user-pavle {
        color: #67D68D; /* Light Green */
    }

    .user-laste {
        color: #FFB74D; /* Warm Amber */
    }
}
