* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-slideDown {
    animation: slideDown 0.4s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #0f0f23 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.light .gradient-bg {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 50%, #fef2f2 100%);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.light .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 38, 38, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(185, 28, 28, 0.95) 100%);
}

/* Status Colors */
.status-approved {
    background: linear-gradient(135deg, #059669, #10b981);
}

.status-recovery {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.status-failed {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.status-pending {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

/* Subject Content Animation */
.subject-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.subject-content.open {
    max-height: 800px;
}

/* Expand Icon */
.expand-icon {
    transition: transform 0.3s ease;
}

.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Delete Button */
.delete-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-hover:hover .delete-btn {
    opacity: 1;
}

@media (max-width: 640px) {
    .delete-btn {
        opacity: 1;
    }
}

/* Page Transitions */
.page {
    display: none;
    opacity: 0;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-out forwards;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

/* Input Focus */
.input-focus:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
}

/* Semester Grid */
.semester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .semester-grid {
        grid-template-columns: 1fr;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.carousel-slide.active {
    display: block;
}

/* Light Mode Adjustments */
.light .text-white {
    color: #1f2937;
}

.light .text-white\/60 {
    color: rgba(31, 41, 55, 0.6);
}

.light .text-white\/70 {
    color: rgba(31, 41, 55, 0.7);
}

.light .text-white\/80 {
    color: rgba(31, 41, 55, 0.8);
}

.light .text-white\/50 {
    color: rgba(31, 41, 55, 0.5);
}

.light .text-white\/40 {
    color: rgba(31, 41, 55, 0.4);
}

.light .bg-white\/5 {
    background: rgba(220, 38, 38, 0.05);
}

.light .bg-white\/10 {
    background: rgba(220, 38, 38, 0.08);
}

.light .border-white\/10 {
    border-color: rgba(220, 38, 38, 0.1);
}

.light .border-white\/20 {
    border-color: rgba(220, 38, 38, 0.15);
}

.light .hover\:bg-white\/10:hover {
    background: rgba(220, 38, 38, 0.1);
}