/* Schedule Section Styles */

#schedule {
    position: relative;
    overflow: hidden;
}

/* Timeline Container */
.schedule-container {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.schedule-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    /* Aligns with the border line */
    top: 0.25rem;
    width: 0.7rem;
    height: 0.7rem;
    background: var(--bg-color);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.schedule-item:hover::before {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.schedule-date {
    font-family: 'SF Mono', monospace;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-card {
    position: relative;
}

/* Admin Controls logic */
.admin-controls {
    margin-top: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    height: 0;
    overflow: hidden;
}

.schedule-item:hover .admin-controls.logged-in {
    opacity: 1;
    pointer-events: auto;
    height: auto;
}

/* Modal for Add/Edit */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-form {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-family: 'SF Mono', monospace;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Login Button (Hidden/Subtle) on Main Page only */
#adminLoginBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.1;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    z-index: 100;
}

#adminLoginBtn:hover {
    opacity: 1;
}