/* DASHBOARD.CSS
    Architecture: Soft UI Professional
    Target: Staff & Guardian Portals
*/

/* --- 1. GLOBAL VARIABLES --- */
:root {
    /* Colors */
    --primary-indigo: #4f46e5;
    --primary-hover: #4338ca;
    --guardian-blue: #0284c7;
    --guardian-hover: #0369a1;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --main-bg: #f8f9fc;

    /* Soft Backgrounds */
    --bg-soft-indigo: #eef2ff;
    --bg-soft-blue: #e0f2fe;
    --bg-soft-success: #f0fdf4;
    --bg-soft-danger: #fef2f2;

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Effects */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. BASE RESET --- */
body {
    background-color: var(--main-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- 3. LAYOUT COMPONENTS (Sidebar & Nav) --- */
.sidebar {
    width: 280px;
    height: 100vh;
    background-color: var(--sidebar-bg);
    position: fixed;
    left: -280px;
    top: 0;
    transition: var(--transition);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
}

.sidebar.show { left: 0; }

.sidebar-header {
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.sidebar-menu .nav-link {
    color: #cbd5e1;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.sidebar-menu .nav-link:hover {
    background-color: var(--sidebar-hover);
    color: #fff;
}

.sidebar-menu .nav-link.active {
    background-color: var(--primary-indigo);
    color: #fff;
}

.sidebar-menu .nav-link i {
    width: 25px;
    margin-right: 12px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.top-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-heading {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

/* --- 4. FORM & AUTH UI --- */
.form-control {
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    transition: var(--transition);
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.login-card, .guardian-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.header-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Use these in your login blades */
.icon-indigo { background: var(--bg-soft-indigo); color: var(--primary-indigo); }
.icon-blue { background: var(--bg-soft-blue); color: var(--guardian-blue); }

.instruction-box {
    background-color: #f0f9ff;
    border-left: 4px solid var(--guardian-blue);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* --- 5. DASHBOARD & STUDENT CARDS --- */
.feature-card, .student-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-card:hover, .student-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.student-card { border-radius: var(--radius-lg); overflow: hidden; }

.icon-shape {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.profile-container {
    height: 240px;
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}

.student-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.student-card:hover .student-img { transform: scale(1.08); }

.sid-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* --- 6. BUTTONS & BADGES --- */
.btn-primary-soft {
    background-color: var(--primary-indigo);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.btn-primary-soft:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.meta-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-green { background: #f0fdf4; color: #16a34a; }

.logout-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.logout-btn:hover { background: #ef4444; color: white; }



    /* guradian login */
        /* Modern Input Styling */
        .form-control {
            border-radius: 10px;
            padding: 0.65rem 1rem;
            border: 1px solid #e2e8f0;
            background-color: #f8fafc;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            background-color: #fff;
            border-color: #4f46e5;
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        }

        /* Soft UI Card for Guardian */
        .guardian-card {
            background: #ffffff;
            border: none;
            border-radius: 20px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
            border: 1px solid #f1f5f9;
        }

        .guardian-header-icon {
            width: 60px;
            height: 60px;
            background: #e0f2fe; /* Light blue */
            color: #0284c7; /* Sky blue */
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .btn-guardian {
            background-color: #0284c7;
            border: none;
            border-radius: 10px;
            padding: 0.75rem;
            font-weight: 600;
            color: white;
            transition: all 0.3s;
        }

        .btn-guardian:hover {
            background-color: #0369a1;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
            color: white;
        }

        .instruction-box {
            background-color: #f0f9ff;
            border-left: 4px solid #0284c7;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 2rem;
        }



        /* staff dashboard */
        /* Modern Input Styling */
        .form-control {
            border-radius: 10px;
            padding: 0.6rem 1rem;
            border: 1px solid #e2e8f0;
            background-color: #f8fafc;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            background-color: #fff;
            border-color: #4f46e5;
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        }

        /* Soft UI Card for Login */
        .login-card {
            background: #ffffff;
            border: none;
            border-radius: 20px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
            border: 1px solid #f1f5f9;
        }

        .login-header-icon {
            width: 60px;
            height: 60px;
            background: #eef2ff;
            color: #4f46e5;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .text-indigo { color: #4f46e5; }

        .btn-login {
            background-color: #4f46e5;
            border: none;
            border-radius: 10px;
            padding: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all 0.3s;
        }

        .btn-login:hover {
            background-color: #4338ca;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
        }

        .form-check-input:checked {
            background-color: #4f46e5;
            border-color: #4f46e5;
        }


        /* guardian dashboard */

        /* Card refinements to match the Soft UI Pattern */
        .feature-card {
            background: #ffffff;
            border: 1px solid #f1f5f9;
            border-radius: 20px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            height: 100%;
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
            border-color: #e2e8f0;
        }

        .icon-shape {
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 18px;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            transition: 0.3s;
        }

        /* Specific Colors for Icons */
        .bg-soft-primary { background: #eef2ff; color: #4f46e5; }
        .bg-soft-success { background: #f0fdf4; color: #22c55e; }
        .bg-soft-danger  { background: #fef2f2; color: #ef4444; }

        /* Button Customizations */
        .btn-action {
            border-radius: 10px;
            padding: 8px 24px;
            font-weight: 600;
            border: none;
            transition: 0.3s;
        }

        .btn-action-primary { background-color: #4f46e5; color: white; }
        .btn-action-success { background-color: #22c55e; color: white; }
        .btn-action-danger  { background-color: #ef4444; color: white; }

        .btn-action:hover {
            filter: brightness(90%);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            color: white;
        }


        /* guardian childreen */


        /* Soft UI Student Card */
        .student-card {
            background: #ffffff;
            border: 1px solid #f1f5f9;
            border-radius: 24px;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .student-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        /* Profile Image Container */
        .profile-container {
            height: 240px;
            position: relative;
            background: #f8fafc;
        }

        .student-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .student-card:hover .student-img {
            transform: scale(1.08);
        }

        /* Info Badge Overlay */
        .sid-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            padding: 5px 12px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 700;
            color: #475569;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        /* Content Styling */
        .student-info-body {
            padding: 1.5rem;
        }

        .student-name {
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 0.75rem;
            letter-spacing: -0.5px;
        }

        .meta-badge {
            font-size: 0.75rem;
            padding: 6px 14px;
            border-radius: 50px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .badge-class { background: #eff6ff; color: #2563eb; }
        .badge-section { background: #f0fdf4; color: #16a34a; }

        /* Modern Action Button */
        .btn-view-profile {
            background: #1e293b;
            color: white;
            border-radius: 12px;
            padding: 10px 20px;
            font-weight: 600;
            font-size: 0.85rem;
            width: 100%;
            transition: 0.3s;
            border: none;
            margin-top: 1.25rem;
        }

        .btn-view-profile:hover {
            background: #0f172a;
            color: white;
            box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.3);
        }

        /* main staff dashbord */

        :root {
            --glass-bg: rgba(255, 255, 255, 0.95);
            --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
            --hover-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
        }

        .dashboard-container { padding: 2rem 1.5rem; background-color: #f8f9fc; min-height: 100vh; }

        /* Modern Card Styling */
        .custom-card {
            border: none;
            border-radius: 16px;
            background: white;
            box-shadow: var(--card-shadow);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Quick Action Cards */
        .quick-card { border-radius: 20px; text-align: center; padding: 1.5rem !important; }
        .quick-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--hover-shadow);
            background: #ffffff;
        }

        .icon-circle {
            width: 60px; height: 60px;
            border-radius: 18px;
            display: flex; align-items: center; justify-content: center;
            margin: 0 auto 1rem;
            transition: 0.3s;
        }

        /* Refined Color Palette */
        .bg-soft-primary { background-color: #eef2ff; color: #4f46e5; }
        .bg-soft-success { background-color: #ecfdf5; color: #10b981; }
        .bg-soft-warning { background-color: #fffbeb; color: #f59e0b; }
        .bg-soft-info { background-color: #f0f9ff; color: #0ea5e9; }
        .bg-soft-danger { background-color: #fef2f2; color: #ef4444; }

        /* Typography & Tables */
        .section-title { font-size: 1.1rem; letter-spacing: -0.02em; color: #1e293b; margin-bottom: 1.5rem; }
        .table thead th {
            background-color: #f8f9fc;
            text-transform: uppercase;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            border-top: none;
        }
        .badge-role { padding: 0.5em 1em; font-weight: 500; letter-spacing: 0.02em; }

/* Home page style */

        :root {
            --light-blue: #00AEEF;
            --deep-blue: #0088cc;
            --ash-gray: #7f8c8d;
            --dark-ash: #2c3e50;
            --soft-bg: #fdfdfd;
            --glass: rgba(255, 255, 255, 0.95);
        }

        body {
            background-color: #ffffff;
            color: var(--dark-ash);
            font-family: 'Poppins', sans-serif;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, .navbar-brand { font-family: 'Crimson Text', serif; }

        /* Smooth Scroll Reveal */
        .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
        .reveal.active { opacity: 1; transform: translateY(0); }

        /* Navbar Enhancement */
        .navbar {
            padding: 30px 0;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .navbar.scrolled {
            background: var(--glass) !important;
            backdrop-filter: blur(10px);
            padding: 15px 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            border-bottom: 2px solid var(--light-blue);
        }
        .navbar.scrolled .nav-link, .navbar.scrolled .navbar-brand { color: var(--dark-ash) !important; }
        .nav-link { font-weight: 500; letter-spacing: 0.5px; position: relative; }
        .nav-link::after {
            content: ''; position: absolute; width: 0; height: 2px;
            bottom: 0; left: 50%; background: var(--light-blue);
            transition: 0.3s; transform: translateX(-50%);
        }
        .nav-link:hover::after { width: 80%; }

        /* Hero & Carousel */
        #heroCarousel { height: 100vh; position: relative; }
        .carousel-item img { height: 100vh; object-fit: cover; filter: brightness(40%); transition: transform 5s ease; }
        .carousel-item.active img { transform: scale(1.1); }

        .hero-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            display: flex; align-items: center; justify-content: center; z-index: 10;
        }
        .hero-box {
            background: rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(8px);
            border-left: 8px solid var(--light-blue);
            padding: 60px; border-radius: 0 30px 30px 0;
            max-width: 900px; color: white;
        }

        /* Feature Cards */
        .feature-card {
            border: 1px solid #eee; border-radius: 20px; padding: 40px 30px;
            transition: all 0.4s ease; background: white; height: 100%;
        }
        .feature-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.08);
            border-color: var(--light-blue);
        }
        .feature-icon {
            font-size: 2.5rem; color: var(--light-blue); margin-bottom: 20px;
            display: inline-block; transition: 0.3s;
        }
        .feature-card:hover .feature-icon { transform: scale(1.2) rotate(5deg); }

        /* Tabs Beauty */
        .nav-pills .nav-link {
            border-radius: 50px; padding: 12px 35px; color: var(--ash-gray);
            border: 1px solid #eee; transition: 0.4s; margin: 0 10px;
        }
        .nav-pills .nav-link.active {
            background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
            box-shadow: 0 10px 20px rgba(0, 174, 239, 0.3);
            border-color: transparent;
        }

        /* Buttons */
        .btn-primary {
            background: linear-gradient(45deg, var(--light-blue), var(--deep-blue));
            border: none; border-radius: 50px; padding: 14px 40px;
            box-shadow: 0 5px 15px rgba(0, 174, 239, 0.2);
            transition: 0.3s;
        }
        .btn-primary:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4); }

        .section-title { font-size: 2.8rem; margin-bottom: 50px; position: relative; }
        .section-title::after {
            content: ''; width: 80px; height: 5px; background: var(--light-blue);
            position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
            border-radius: 10px;
        }

        footer { background: #1a1a1a !important; }
