/* ================================================================================
   Файл: calendar.css
   Стили для главной страницы календаря (events_index)
   ================================================================================ */

.index .header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem;
}

.index .current-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #64b5f6;
    padding-right: 1rem;
}

.index .eventadd {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: radial-gradient(circle at center, #2c4838 0%, #1c2c21 100%);
    color: #a7ffeb;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(44, 72, 56, 0.5), inset 0 0 20px rgba(28, 44, 33, 0.8);
    transition: all 0.4s ease;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    text-decoration: none;
}

.index .eventadd:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6), inset 0 0 30px rgba(28, 44, 33, 0.9);
    background: radial-gradient(circle at center, #3c5848 0%, #2c3c31 100%);
}

#calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.day, .day-even {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid #404040;
    border-top: 0.25rem solid #4299e1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.day-even {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f1f33 100%);
    border-top: 0.25rem solid #60a5fa;
}

.day:hover, .day-even:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.5rem 1.875rem rgba(0,0,0,0.4);
}

.day-date {
    font-weight: bold;
    color: #f7fafc;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-bottom: 1px solid #2d4a3a;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d4a3a 0%, #1a2a1f 100%);
    border-radius: 0.375rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.day-content {
    height: 25rem;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.note-look {
    line-height: 1.6;
    color: #e2e8f0;
    word-wrap: break-word;
    padding: 1rem;
    background: rgba(74, 85, 104, 0.3);
    border-radius: 0.5rem;
    border: 1px solid #4a5568;
    height: 15rem;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.category-info {
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.category-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #ffffff;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #63b3ed;
}

.day-even .category-label {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border: 1px solid #93c5fd;
}

.recurrence-info {
    font-style: italic;
    color: #cbd5e0;
    font-size: 0.8rem;
    padding: 0.5rem;
    background: rgba(74, 85, 104, 0.3);
    border-radius: 0.5rem;
    border-left: 0.1875rem solid #ed8936;
    height: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.day-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    height: 5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #4a5568;
    width: 100%;
    margin-top: auto;
}

.day-actions a {
    padding: 0.5rem 0.25rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #e0e0e0;
}

.day-actions a:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

.day-content::-webkit-scrollbar,
.note-look::-webkit-scrollbar {
    width: 0.5rem;
}

.day-content::-webkit-scrollbar-track,
.note-look::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 0.25rem;
}

.day-content::-webkit-scrollbar-thumb,
.note-look::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 0.25rem;
}

.day-content::-webkit-scrollbar-thumb:hover,
.note-look::-webkit-scrollbar-thumb:hover {
    background: #4299e1;
}