/* Timetable & Calendar Styles */

#timeTableModal .modal-content {
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.tt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

#ttTitle {
    font-family: 'Syncopate', sans-serif;
    color: var(--accent-color);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tt-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tt-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tt-nav-btn:hover {
    background: var(--accent-color);
    color: black;
}

#ttMonthDisplay {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    min-width: 150px;
    text-align: center;
}

.tt-layout {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
}

.tt-calendar-section {
    flex: 2;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.tt-details-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.tt-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.tt-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 5px;
    flex: 1;
}

.tt-day {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.tt-day:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.tt-day.selected {
    background: var(--accent-color);
    color: black;
    font-weight: bold;
    box-shadow: 0 0 20px var(--accent-color);
}

.tt-day.today {
    border: 2px solid var(--accent-color);
}

.tt-dot {
    position: absolute;
    bottom: 5px;
    width: 6px;
    height: 6px;
    background-color: #ff4444;
    /* Event indicator */
    border-radius: 50%;
}

.tt-date-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tt-event-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.tt-event-card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.2s ease;
}

.tt-event-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
}

.tt-event-card h4 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 1.1rem;
}

.tt-event-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.tt-time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
}

.tt-delete-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tt-event-card:hover .tt-delete-btn {
    opacity: 1;
}

.tt-add-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--accent-color), #d4af37);
    border: none;
    color: black;
    padding: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Syncopate', sans-serif;
    transition: transform 0.2s ease;
}

.tt-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Form Overlay */
.tt-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.tt-form-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--accent-color);
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.tt-form-card input,
.tt-form-card select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 5px;
}

.tt-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.tt-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}