/* Modern Calendar System Styles */

.subject-sidebar-right {
    width: 200px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px -20px #000;
    z-index: 100;
    margin-right: 1%;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    color: #111;
    text-transform: uppercase;
}

.subject-pool {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.subject-link-tag {
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #e6e6e6 0%, #ffffff 50%, #b3b3b3 100%);
    border: 1px solid #999;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    color: #333;
    cursor: grab;
    transition: all 0.2s;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 2px 2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subject-link-tag:hover {
    filter: brightness(1.1);
    transform: translateY(-2px) scale(1.05);
    z-index: 50;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.subject-link-tag.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Calendar Mini Shields */
.test-mini-tag {
    background: #38d2d2;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(56, 210, 210, 0.3);
    border-left: 3px solid rgba(0,0,0,0.1);
    cursor: help;
}

.test-mini-tag span:last-child {
    opacity: 0.9;
    font-size: 0.65rem;
}

/* Calendar Grid Overrides/Refinements */
.calendar-day.drag-over {
    background: #f0fdfa;
    border: 2px dashed #38d2d2;
}

/* Animation for Modal */
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}


