:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Background Blobs */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #4c1d95 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #be185d 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* Layout */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 85vh;
    border-radius: 20px;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 10;
    transition: transform 0.3s ease;
}

.glass-effect {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    outline: none;
    transition: border 0.3s;
}

.search-box input:focus {
    border-color: var(--accent-color);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    font-size: 1.2rem;
}

.school-list {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}

/* Scrollbar */
.school-list::-webkit-scrollbar {
    width: 6px;
}

.school-list::-webkit-scrollbar-track {
    background: transparent;
}

.school-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.group-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 15px 0 8px 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.school-item {
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.school-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.school-item.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-color);
}

.school-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tag-wip {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fbbf24;
}

/* Main Content */
.container {
    flex: 1;
    max-width: 800px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 .highlight {
    background: linear-gradient(to right, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Upload Zone */
.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.status-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.upload-zone {
    flex: 1;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    max-height: 400px;
    /* Limit height */
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.05);
}

.file-input {
    display: none;
}

.upload-content {
    text-align: center;
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.sub-text {
    font-size: 0.85em;
    opacity: 0.6;
    margin-top: 5px;
}

.file-info {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 10px 16px;
    border-radius: 12px;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px var(--accent-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(1);
}

.btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px var(--accent-glow);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: all 0.3s;
}

.toast.hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
}

.toast span:first-child {
    color: #4ade80;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-y: auto;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        margin: 0 0 20px 0;
        border-radius: 20px;
    }

    .container {
        height: auto;
        width: 100%;
        padding: 0;
    }

    .card {
        padding: 1.5rem;
    }

    .upload-zone {
        height: 180px;
    }
}