﻿@charset "utf-8";
/* ==========================================================================
   PREMIUM SAAS DASHBOARD UI FRAMEWORK
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Core Palette */
    --bg-app: #f4f6f8;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --danger: #ef4444;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-card: 0 8px 30px rgba(0,0,0,0.04);
    --shadow-float: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

/* --- BASE --- */
body {
    margin: 0px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar for a polished feel */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* =========================================
   HEADER (FROSTED GLASS EFFECT)
   ========================================= */
.header-container {
    padding: 0 24px;
    width: 100%;
    height: 64px;
    position: fixed;
    top: 0;
    right: 0px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schoolinfo {
    display: flex;
    align-items: center;
}

.school-name {
    font-size: 20px;
    font-weight: 800;
    padding-left: 12px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.header .login-pane a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

    .header .login-pane a:hover {
        background: var(--primary);
        color: #ffffff;
        box-shadow: var(--shadow-float);
        transform: translateY(-1px);
    }

/* =========================================
   SIDE MENU (SLEEK DARK MODE)
   ========================================= */
.mainmenupanel {
    width: 64px;
    position: fixed;
    left: 0px;
    bottom: 0px;
    top: 64px;
    padding: 15px 0;
    z-index: 990;
    background: #0f172a;
    border-right: 1px solid #1e293b;
    transition: width 0.3s ease;
}

    .mainmenupanel .close span {
        cursor: pointer;
        padding: 8px;
        background: rgba(255,255,255,0.1);
        color: #f8fafc;
        border-radius: var(--radius-sm);
        display: inline-block;
        transition: all 0.2s;
    }

        .mainmenupanel .close span:hover {
            background: var(--danger);
            transform: scale(1.05);
        }

    .mainmenupanel .item {
        padding: 14px;
        margin: 8px 10px;
        color: #94a3b8;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
        cursor: pointer;
        display: flex;
        justify-content: center;
    }

        .mainmenupanel .item:hover {
            background: rgba(255,255,255,0.05);
            color: #ffffff;
        }

/* Extended Sidebar */
.left-col-pane {
    padding: 15px 10px;
    min-height: calc(100vh - 64px);
    background: #0f172a;
    color: #f8fafc;
}

    .left-col-pane .item {
        padding: 12px 16px;
        margin: 4px 0;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }

        .left-col-pane .item:hover {
            background: rgba(255,255,255,0.05);
        }

    .left-col-pane .item-menu a {
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        color: #cbd5e1;
        display: block;
    }

        .left-col-pane .item-menu a:hover {
            color: #38bdf8;
            transform: translateX(4px);
        }

.item-cap {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 20px 15px 10px 15px;
}

/* =========================================
   SEARCH PANEL & NOTIFICATIONS
   ========================================= */
.searchpanel {
    position: fixed;
    right: 0px;
    bottom: 0px;
    top: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    border-left: 1px solid var(--border-soft);
    z-index: 990;
}

.notify_count {
    background: var(--danger);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    position: absolute;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    transform: translate(10px, -10px);
}

/* Floating Top Search */
#top_search_container {
    display: none;
    width: 100%;
    max-width: 600px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    border: 1px solid var(--border-soft);
    display: flex;
}

    #top_search_container .txttopsearch {
        flex: 1;
        height: 48px;
        background: #f8fafc;
        border: 1px solid transparent;
        font-size: 15px;
        padding: 0 20px;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        outline: none;
        transition: all 0.2s;
    }

        #top_search_container .txttopsearch:focus {
            background: #ffffff;
            border-color: var(--primary);
            box-shadow: inset 0 0 0 1px var(--primary);
        }

    #top_search_container .btntopsearch {
        width: 100px;
        background: var(--primary);
        color: white;
        border: none;
        font-weight: 600;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        cursor: pointer;
    }

/* =========================================
   CONTENT & FLOATING CARDS
   ========================================= */
.content-container {
    min-height: 550px;
    padding: 30px;
    box-sizing: border-box;
}

.content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 35px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

    .content .title {
        font-size: 28px;
        font-weight: 800;
        color: var(--text-main);
        letter-spacing: -0.5px;
        margin-bottom: 25px;
    }

    .content .sub-content .cap {
        font-size: 12px;
        font-weight: 800;
        color: var(--primary);
        background: var(--primary-light);
        padding: 6px 12px;
        border-radius: var(--radius-sm);
        display: inline-block;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }

    .content .sub-content .lbl {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-muted);
    }

/* =========================================
   MODERN SEGMENTED TABS
   ========================================= */
.tab-menu {
    background: #f1f5f9;
    padding: 6px;
    border-radius: var(--radius-md);
    display: inline-flex;
    margin-bottom: 25px;
}

    .tab-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
    }

    .tab-menu tr td {
        padding: 0;
    }

        .tab-menu tr td.menu a {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-muted);
            text-decoration: none;
            padding: 10px 24px;
            display: block;
            border-radius: var(--radius-sm);
            transition: all 0.2s ease;
        }

            .tab-menu tr td.menu a:hover {
                color: var(--text-main);
                background: rgba(255,255,255,0.5);
            }

    .tab-menu .selected-menu a {
        color: var(--primary) !important;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

/* =========================================
   FORM INPUTS (SOFT FILL TO FOCUS BORDER)
   ========================================= */
input[type="text"],
input[type="password"],
textarea,
select {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
    width: 100%;
   
}

    input[type="text"]:hover,
    input[type="password"]:hover,
    select:hover {
        background-color: #f1f5f9;
    }

    input[type="text"]:focus,
    input[type="password"]:focus,
    textarea:focus,
    select:focus {
        background-color: #ffffff;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

input[type="button"],
input[type="submit"],
button,
input[type="file"] {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

    input[type="button"]:hover,
    input[type="submit"]:hover,
    button:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-float);
    }

/* =========================================
   TOOLTIPS
   ========================================= */
[data-tooltip] {
    position: relative;
}

    [data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%) translateY(8px) scale(0.95);
        white-space: nowrap;
        background-color: #0f172a;
        color: #ffffff;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 600;
        border-radius: var(--radius-sm);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        pointer-events: none;
    }

    [data-tooltip]::before {
        content: '';
        position: absolute;
        bottom: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        border-width: 6px;
        border-style: solid;
        border-color: #0f172a transparent transparent transparent;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        pointer-events: none;
    }

    [data-tooltip]:hover::after,
    [data-tooltip]:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0) scale(1);
    }

/* Footers inside views */
.studpreview-header {
    background: #0f172a;
    color: #f8fafc;
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.studpreview-footer {
    background: #f1f5f9;
    color: #64748b;
    padding: 12px;
    font-size: 11px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
