/* ==================== COMPACT STICKY TERM BUTTON ==================== */
.term-sticky-button {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    padding: 6px 10px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        0 4px 20px rgba(220, 38, 38, 0.4),
        0 0 30px rgba(220, 38, 38, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: slideInRight 0.6s ease;
}

.term-sticky-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 30px rgba(220, 38, 38, 0.5),
        0 0 40px rgba(220, 38, 38, 0.3);
}

@keyframes slideInRight {
    from {
        right: -200px;
        opacity: 0;
    }

    to {
        right: 20px;
        opacity: 1;
    }
}

.term-button-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: white;
    white-space: nowrap;
}

.term-button-arrow {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/* ==================== COURSE SELECTION STICKY BUTTON (LEFT) ==================== */
.course-sticky-button {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    padding: 6px 6px 6px 10px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: slideInLeft 0.6s ease;
}

.course-sticky-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 30px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
}

@keyframes slideInLeft {
    from {
        left: -200px;
        opacity: 0;
    }

    to {
        left: 20px;
        opacity: 1;
    }
}

.course-button-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: white;
    white-space: nowrap;
}

.course-button-arrow {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    animation: arrowBounceLeft 1.5s ease-in-out infinite;
}

@keyframes arrowBounceLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-4px);
    }
}

.term-button-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #7c2d12;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 2px 10px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 2px 10px rgba(251, 191, 36, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow:
            0 4px 15px rgba(251, 191, 36, 0.8),
            0 0 20px rgba(251, 191, 36, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
}

.term-button-arrow {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/* ==================== FULL-PAGE MODAL ENHANCEMENTS ==================== */
.modal-dialog {
    max-width: 900px !important;
}

.modal-content {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%) !important;
    border: 2px solid transparent !important;
    border-image: linear-gradient(135deg, rgba(220, 38, 38, 0.5), rgba(251, 191, 36, 0.5)) 1 !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.modal-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 50%, #7f1d1d 100%) !important;
    border-bottom: 3px solid #fbbf24 !important;
    position: relative;
    overflow: hidden;
    padding: 2rem !important;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.modal-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    font-size: 1.8rem !important;
}

.modal-body {
    padding: 2.5rem !important;
}

.alert {
    border-radius: 15px !important;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3) !important;
    border: none !important;
}

.card {
    border-radius: 15px !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(251, 191, 36, 0.3) !important;
}

.card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
}

.card-body {
    padding: 1.5rem !important;
}

.list-group-item {
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px);
    margin-bottom: 0.75rem !important;
}

.list-group-item:hover {
    transform: translateX(8px) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3) !important;
}

.btn-danger {
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4) !important;
    transition: all 0.3s ease !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
}

.btn-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6) !important;
}

/* ==================== TERM NAVIGATION BUTTON ==================== */
.term-nav-button {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
    color: #fbbf24 !important;
    font-weight: 800 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem !important;
    box-shadow:
        0 4px 15px rgba(220, 38, 38, 0.4),
        0 0 20px rgba(251, 191, 36, 0.2);
    animation: pulse-glow 2s ease-in-out infinite;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(251, 191, 36, 0.3) !important;
}

.term-nav-button:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%) !important;
    color: #fbbf24 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow:
        0 6px 25px rgba(220, 38, 38, 0.6),
        0 0 30px rgba(251, 191, 36, 0.4) !important;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 4px 15px rgba(220, 38, 38, 0.4),
            0 0 20px rgba(251, 191, 36, 0.2);
    }

    50% {
        box-shadow:
            0 6px 20px rgba(220, 38, 38, 0.6),
            0 0 30px rgba(251, 191, 36, 0.4);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .term-sticky-button {
        top: 100px;
        right: 10px;
        padding: 5px 8px 5px 5px;
        gap: 5px;
    }

    .course-sticky-button {
        top: 100px;
        left: 10px;
        padding: 5px 5px 5px 8px;
        gap: 5px;
    }

    .term-button-badge,
    .course-button-badge {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .term-button-arrow,
    .course-button-arrow {
        font-size: 0.9rem;
    }

    .modal-dialog {
        margin: 0.5rem !important;
    }

    .modal-header {
        padding: 1.5rem !important;
    }

    .modal-title {
        font-size: 1.3rem !important;
    }

    .modal-body {
        padding: 1.5rem !important;
    }

    .term-nav-button {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
}