/* css/style.css - Neo-Modern Masterpiece Global */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    /* Indigo */
    --primary-dark: #4338ca;
    --secondary: #ec4899;
    /* Pink */
    --accent: #8b5cf6;
    /* Violet */
    --dark: #0f172a;
    /* Slate 900 */
    --light: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;

    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
}

body {
    font-family: var(--font-body);
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.1) 0, transparent 40%),
        radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--dark);
    line-height: 1.7;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--dark);
}

/* Glass & Card Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 600;
    color: #475569 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.08);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* Forms */
.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* List Card (Teacher List) */
.list-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.list-card:hover {
    transform: translateX(4px);
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.list-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.list-card:hover::before {
    opacity: 1;
}

.avatar-container-list {
    position: relative;
    width: 80px;
    height: 80px;
}

.avatar-img-list {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Badges & Pills */
.pill-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4em 1em;
    border-radius: 50px;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table thead th {
    border: none;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.table tbody tr td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.table tbody tr td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.table tbody tr:hover {
    background: white;
    transform: scale(1.01);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.table td {
    border: none;
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
}

/* Hero Blobs - REDUCED PADDING */
.hero-fancy {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 2rem;
}

/* Reduced from 6rem to 3rem top, 2rem bottom */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
}

.blob-1 {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #c7d2fe;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #fbcfe8;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Approved Badge Custom Design */
/* Approved Badge Custom Design - Sky Blue */
.badge-approved-box {
    position: relative;
    border: 2px solid #56CCF2;
    /* Sky Blue */
    color: #56CCF2;
    border-radius: 8px;
    padding: 2px 8px;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    background: transparent;
    line-height: 1;
    margin-top: 6px;
}

.badge-approved-box .check-icon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 4px;
    color: #56CCF2;
    font-size: 0.8rem;
}

/* Ensure background masking works on hover cards */
.list-card:hover .badge-approved-box .check-icon {
    background: #fff;
}

/* Responsive & Mobile Optimizations */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .hero-fancy {
        padding: 2rem 0;
    }

    .hero-blob {
        opacity: 0.3;
        width: 300px;
        height: 300px;
    }

    h1.display-4 {
        font-size: 2.5rem;
    }

    .list-card {
        border-radius: var(--radius-sm);
    }

    .list-card:hover {
        transform: none;
    }

    .avatar-container-list {
        width: 60px;
        height: 60px;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }

    /* Stack tables horizontally on mobile if needed, or stick to simple responsive containers */
    .table-responsive {
        border-radius: var(--radius-sm);
    }
}