/* Custom Global Styles - School Theme (Blue & Pink) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&family=Prompt:wght@300;400;500;600&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #f472b6;
    --secondary-dark: #db2777;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --glass-border: rgba(255, 255, 255, 0.5);
    --dark: #1e293b;
}

body {
    font-family: 'Prompt', 'Kanit', sans-serif;
    /* Soft Blue & Pink gradient */
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 50%, #dbeafe 100%);
    min-height: 100vh;
    color: #1e293b;
    background-attachment: fixed;
}

.container { margin: 0 auto; padding: 1.5rem;}

/* Components mapped back to Tailwind style */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.glass-nav, .navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    color: #1e3a8a;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-primary { 
    background: linear-gradient(to right, #3b82f6, #60a5fa); 
    color: white; 
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { 
    background: linear-gradient(to right, #2563eb, #3b82f6); 
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);
}

.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; background: rgba(255,255,255,0.4); padding: 0.5rem; border-radius: 1rem; width: fit-content; }
.tab { padding: 0.6rem 1.2rem; border-radius: 0.75rem; color: #64748b; cursor: pointer; transition: 0.3s; font-weight: 500; font-size: 0.875rem; border: none; background: transparent; }
.tab:hover { background: rgba(255,255,255,0.6); }
.tab.active { background: white; color: #2563eb; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; font-size: 0.875rem; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
th { background: rgba(255,255,255,0.5); font-weight: 600; color: #334155; white-space: nowrap; }
tbody tr:hover { background: rgba(255,255,255,0.5); transition: background 0.2s; }

.status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; text-align: center; }
.status-pending, .status-submitted { background: #fef3c7; color: #d97706; }
.status-progress, .status-in_progress { background: #dbeafe; color: #2563eb; }
.status-completed, .status-graded, .status-pass { background: #dcfce7; color: #16a34a; }
.status-failed, .status-fail { background: #fee2e2; color: #dc2626; }

.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.875rem; color: #475569; }
.form-control { width: 100%; padding: 0.6rem 1rem; border-radius: 0.75rem; border: 1px solid #cbd5e1; background: rgba(255,255,255,0.7); outline: none; transition: all 0.2s; font-size: 0.875rem;}
.form-control:focus { border-color: #f472b6; box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2); background: white; }
.task-input { width: 100px; padding: 0.4rem; border: 1px solid #ddd; border-radius: 0.5rem; font-size: 0.8rem; background: rgba(255,255,255,0.8); transition: all 0.2s; outline: none; }
.task-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); background: white; }


.modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; width: 90%; max-width: 500px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 1.25rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); padding: 2rem; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: #1e3a8a; font-weight: 600; font-size: 1.25rem; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 999; }

.badge { padding: 0.35rem 0.75rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 500; color: white; display: inline-block; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.badge-success { background: linear-gradient(to right, #10b981, #34d399); }
.badge-danger { background: linear-gradient(to right, #ef4444, #f87171); }

/* Custom Scrollbar for minimalist feel */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(244, 114, 182, 0.5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(236, 72, 153, 0.8); }

@keyframes blob { 0% { transform: translate(0px, 0px) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } 100% { transform: translate(0px, 0px) scale(1); } }
.animate-blob { animation: blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }

footer {
    padding: 3rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
