/* ========================= */
/* Общие стили сайта         */
/* ========================= */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    background: #f4f6f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.header {
    background: #222;
    color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.nav a {
    color: #ddd;
    margin-left: 20px;
    text-decoration: none;
    font-size: 16px;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

/* FOOTER */
.footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 15px;
}

/* ========================= */
/* HOME - центр меню         */
/* ========================= */
main.center {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 20px 40px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    border-radius: 8px;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.income { background: #2ecc71; }
.expenses { background: #e74c3c; }
.other { background: #3498db; }

/* ========================= */
/* FULLCALENDAR STYLES       */
/* ========================= */

/* Календарь на весь экран */
html, body, main, #calendar {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Заголовок месяца */
.fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Кнопки навигации */
.fc .fc-button {
    background-color: #3498db;
    border: none;
    color: white;
}

.fc .fc-button:hover {
    background-color: #2874a6;
}

/* Названия дней недели */
.fc-col-header-cell-cushion {
    text-decoration: none !important;  /* убираем подчеркивание */
    color: #555;                        /* темно-серый */
    cursor: pointer;                     /* pointer при наведении */
    font-weight: 500;
}

/* Числа дней месяца как фон */
.fc-daygrid-day-number {
    color: rgba(0,0,0,0.2);            /* прозрачный серый */
    font-size: 1.3rem;                  /* увеличенный размер */
    pointer-events: none;               /* чтобы числа не мешали клику */
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 0;
}

/* События поверх числа дня */
.fc-daygrid-day-events {
    position: relative;
    z-index: 1;
}

/* События стиль */
.fc-event {
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 4px;
    color: #fff;
    margin: 2px 0;
}

/* Отключаем hover эффект на число дня */
.fc-daygrid-day:hover .fc-daygrid-day-number {
    color: rgba(0,0,0,0.2);
}