body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    color: #cce7ff;
    min-height: 100vh;
}

/* Make all readonly inputs and textareas transparent on all devices */
input[readonly],inp
textarea[readonly] {
    background-color: transparent !important; /* Transparent background */
    opacity: 1 !important;                   /* Keep text fully visible */
    color: inherit;                           /* Match normal text color */
}
option {
    background-color: #0E262B !important;
}

/* Sidebar (border matches topbar) */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 160px;
    height: 100%;
    backdrop-filter: blur(10px);
    border-right: 0.5px solid rgba(204,231,255,0.2); /* updated */
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.4);
    z-index: 1000;
        background: rgba(255,255,255,0.05);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.sidebar a {
    width: 100%;
    display: flex;
    align-items: center;
    color: #cce7ff;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 4px 12px;
    margin: 2px 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.sidebar a:hover {
    color: #0ff;
    background: rgba(0,255,255,0.12);
    box-shadow: 0 0 8px #0ff inset;
}

.sidebar a i.icon {
    font-size: 0.9rem;
    width: 20px;
    margin-right: 8px;
    text-align: center;
    color: #0ff;
}

.sidebar a span {
    flex-grow: 1;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.sidebar .submenu {
    display: none;
    flex-direction: column;
    width: 100%;
}

.sidebar .submenu a {
    padding-left: 28px;
    font-size: 0.7rem;
    color: #0ff;
}

.sidebar .has-submenu > a i.toggle {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.sidebar .has-submenu.open > a i.toggle {
    transform: rotate(90deg);
}

/* Ultra-Compact Neon-Glow Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 160px; /* after sidebar */
    right: 0;
    height: 45px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    z-index: 1100;
}

/* Brand */
.topbar .brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: #cce7ff;
    text-shadow: 0 0 3px #0ff, 0 0 6px #0ff;
}

/* Neon nav buttons */
.nav-items {
    display: flex;
    gap: 12px;
}

.nav-items a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cce7ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid rgba(204,231,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-items a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #0ff, #0ff, #00f);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 0;
}

.nav-items a:hover::before {
    opacity: 0.2;
}

.nav-items a:hover {
    color: #0ff;
    background: rgba(0,255,255,0.1);
    box-shadow: 0 0 8px #0ff, 0 0 12px #0ff inset;
    transform: translateY(-1px);
    border-color: #0ff;
}

/* Icon inside nav (for mobile only) */
.nav-items a i {
    font-size: 1rem;
    margin-right: 6px;
    display: none;
    color: #0ff;
}

/* Main content */
.main-content {
    margin-left: 160px;
    padding: 60px 14px 14px 14px; /* adjust for thinner topbar */
}

/* Cards Wrapper */
.cards-wrapper {
    margin-bottom: 70px;
}

/* Title */
h6 {
    text-align: center;
    color: #0ff;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* Ultra Compact Card */
.premium-card {
    background: rgba(255,255,255,0.025);
    backdrop-filter: blur(100px);
    border: 0.5px solid rgba(204,231,255,0.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.premium-card:hover {
    box-shadow: 0 0 12px rgba(0,255,255,0.35);
}

.card-header-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.card-title-mini {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0ff;
}

.card-icon {
    font-size: 0.9rem;
    color: #0ff;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.card-sub {
    font-size: 0.6rem;
    opacity: 0.7;
    margin-top: 2px;
}

.card-status {
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 6px;
}

.status-ok {
    color: #0ff;
    border: 0.5px solid #0ff;
    background: rgba(0,255,255,0.12);
}

.status-warn {
    color: #ffb703;
    border: 0.5px solid #ffb703;
    background: rgba(255,183,3,0.12);
}

.status-err {
    color: #ff6b6b;
    border: 0.5px solid #ff6b6b;
    background: rgba(255,0,0,0.12);
}

.btn-card {
    margin-top: 6px;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 0.5px solid rgba(204,231,255,0.25);
    color: #cce7ff;
    text-transform: uppercase;
}

.btn-card:hover {
    color: #0ff;
    box-shadow: 0 0 10px #0ff inset;
}


/* Premium buttons - edgy neon style (from second snippet) */
.btn-premium {
    background: rgba(255, 255, 255, 0.03);
    color: #cce7ff;
    border: 1px solid rgba(204, 231, 255, 0.2);
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 12px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-premium i {
    margin-right: 8px;
    font-size: 1rem;
    color: #0ff;
    transition: all 0.25s ease;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #0ff, #0ff, #00f);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 0;
}

.btn-premium:hover::before {
    opacity: 0.2;
}

.btn-premium:hover {
    background: rgba(0,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 10px #0ff inset;
    color: #0ff;
    border-color: #0ff;
}

/* Button group layout */
.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    margin: 10px auto 0 auto;
}

@media(min-width: 992px) {
    .btn-group-vertical {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 100%;
    }
    .btn-group-vertical .btn-premium {
        justify-content: center;
        text-align: center;
    }
}



/* Banner wrapper spacing */
.banner-wrapper {
    margin-top: 18px;
    margin-bottom: 70px;
}

/* Banner card */
.banner {
    position: relative;
    background: rgba(255,255,255,0.025);
    backdrop-filter: blur(8px);
    border: 0.5px solid rgba(204,231,255,0.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

/* Neon accent bar */
.banner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #0ff;
    box-shadow: 0 0 8px #0ff;
}

/* Icon */
.banner-icon {
    font-size: 1.1rem;
    color: #0ff;
    flex-shrink: 0;
}

/* Text */
.banner-content {
    flex-grow: 1;
}

.banner-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0ff;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.banner-text {
    font-size: 0.65rem;
    line-height: 1.3;
    color: #cce7ff;
}

/* Variants */
.banner.success::before { background: #00ffcc; box-shadow: 0 0 8px #00ffcc; }
.banner.warning::before { background: #ffb703; box-shadow: 0 0 8px #ffb703; }
.banner.danger::before  { background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; }
.banner.info::before    { background: #0ff; }

/* Close button */
.banner-close {
    font-size: 0.8rem;
    color: #0ff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.banner-close:hover {
    opacity: 1;
}


/* Table styling */
.premium-table-wrapper { margin-top: 18px; margin-bottom: 70px; overflow-x:auto; }
.premium-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.025); backdrop-filter: blur(8px); color: #cce7ff; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3px; }
.premium-table th, .premium-table td { padding: 4px 6px; white-space: nowrap; }
.premium-table th { background: rgba(0,255,255,0.08); color: #0ff; font-weight:600; border-bottom: 0.5px solid rgba(204,231,255,0.18); cursor:pointer; }
.premium-table td { border-bottom: 0.5px solid rgba(204,231,255,0.12); line-height:1.2; }
.premium-table tbody tr:hover { background: rgba(0,255,255,0.05); }
.premium-table .btn-premium { padding: 2px 6px; font-size:0.65rem; border-radius:4px; }



/* ===================== Mobile 1 TD per row ===================== */
@media (max-width: 600px) {
    .premium-table thead { display:none; }
    .premium-table tbody tr { display:block; margin-bottom:12px; border-radius:10px; padding:6px; background-color: rgba(0,0,0,0.7); box-shadow:0 0 10px #39ff14 inset; }
    .premium-table tbody tr.inactive { background-color: rgba(255,0,0,0.2); border:1px solid rgba(255,0,0,0.3); }
    .premium-table td { display:block; width:100%; text-align:left; padding:6px; border-bottom:none; white-space:normal; }
    .premium-table td:before { content: attr(data-label); font-weight:600; color:#39ff14; margin-right:10px; display:inline-block; min-width:80px; }
    .premium-table .btn-premium { width:100%; margin-top:4px; padding:4px 0; font-size:0.72rem; }
}

.premium-table td i {
    font-size: 0.75rem;
    color: #0ff;
    margin-right: 4px;
}

.premium-table .btn-premium {
    padding: 2px 6px;
    font-size: 0.65rem;
    border-radius: 4px;
    box-shadow: none;
}

.premium-table .btn-premium i {
    font-size: 0.7rem;
    margin-right: 3px;
}
/* Inactive rows */
.premium-table tbody tr.inactive { background-color: rgba(255,0,0,0.1); border: 1px solid rgba(255,0,0,0.3); }


/* Status pills – ultra thin */
.badge-premium {
    padding: 1px 6px;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 10px;
}

.badge-active {
    color: #0ff;
    border: 0.5px solid #0ff;
    background: rgba(0,255,255,0.12);
}

.badge-inactive {
    color: #ff6b6b;
    border: 0.5px solid #ff6b6b;
    background: rgba(255,0,0,0.12);
}

/* DataTables ultra-compact */
.dataTables_wrapper {
    color: #cce7ff;
    font-size: 0.7rem;
}

table.dataTable {
    border-collapse: collapse !important;
}

table.dataTable thead th {
    padding: 4px 6px !important;
    background: rgba(0,255,255,0.08);
    color: #0ff;
    border-bottom: 0.5px solid rgba(204,231,255,0.2);
}

table.dataTable tbody td {
    padding: 3px 6px !important;
    border-bottom: 0.5px solid rgba(204,231,255,0.12);
    white-space: nowrap;
}

/* Search input */
.dataTables_filter input {
    background: rgba(255,255,255,0.05);
    border: 0.5px solid rgba(204,231,255,0.3);
    color: #0ff;
    font-size: 0.7rem;
    height: 22px;
    padding: 2px 4px;
}

/* Pagination */
.dataTables_paginate a {
    font-size: 0.65rem;
    padding: 2px 6px !important;
    color: #0ff !important;
}

/* Editable fields */
.editable {
    background: rgba(0,255,255,0.1);
    border: 0.5px solid #0ff;
    color: #0ff;
    font-size: 0.7rem;
    width: 100%;
}

/* Checkbox & radio */
.table-check,
.table-radio {
    accent-color: cyan;
    transform: scale(0.85);
}

/* ===================== Premium Neon Inputs ===================== */
.neon-input {
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(0, 255, 255, 0.3);
    color: #cce7ff;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    position: relative;
}

/* Focus effect with glowing pulse */
.neon-input:focus {
    border-color: #0ff;
    color: #0ff;
    background: rgba(0, 255, 255, 0.08);
    box-shadow: 0 0 6px #0ff inset, 0 0 12px #0ff;
    outline: none;
    animation: neon-pulse 1.2s infinite alternate;
}

/* Pulsing neon animation */
@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 6px #0ff inset, 0 0 12px #0ff;
    }
    50% {
        box-shadow: 0 0 8px #0ff inset, 0 0 20px #0ff;
    }
    100% {
        box-shadow: 0 0 6px #0ff inset, 0 0 12px #0ff;
    }
}

/* Labels */
label {
    color: #cce7ff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Validation states */
.neon-input.status-ok {
    border-color: #0ff;
    box-shadow: 0 0 6px #0ff inset;
}

.neon-input.status-warn {
    border-color: #ffb703;
    box-shadow: 0 0 6px #ffb703 inset;
}

.neon-input.status-err {
    border-color: #ff6b6b;
    box-shadow: 0 0 6px #ff6b6b inset;
}

/* Placeholder styling */
.neon-input::placeholder {
    color: rgba(204, 231, 255, 0.6);
    transition: color 0.25s ease;
}

.neon-input:focus::placeholder {
    color: #a0ffff;
}

/* Textarea specific adjustments */
.neon-input[rows] {
    resize: vertical;
}

/* Select adjustments for neon style */
select.neon-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.03);
    padding-right: 30px;
    cursor: pointer;
}


        .btn-premium {
            margin-top: 8px;
        }

        /* Neon select options (for Firefox) */
        select.neon-input option {
            background: #0E262B;
            color: #0ff;
        }
.neon-input:focus {
    border-color: #0ff;
    box-shadow: 0 0 6px #0ff inset;
    outline: none;
    background: rgba(0,255,255,0.05);
    color: #0ff;
}

label {
    color: #cce7ff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* Mobile Responsive Adjustments */
@media(max-width: 991px) {
    /* Sidebar hidden by default */
    .sidebar {
        left: -180px; /* hide off-screen */
        width: 160px;
        transition: left 0.25s ease;
    }

    /* Sidebar overlay */
    .sidebar.show {
        left: 0;
        z-index: 1200;
    }

    /* Main content full width */
    .main-content {
        margin-left: 0;
        padding: 60px 12px 12px 12px;
    }

    /* Topbar takes full width */
    .topbar {
        left: 0;
        padding: 0 12px;
    }

    /* Show nav items inline or stack */
    .nav-items {
        gap: 6px;
        flex-wrap: wrap;
    }

    /* Hide nav text for ultra-compact */
    .nav-items a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    .nav-items a i {
        display: inline-block;
        margin-right: 4px;
    }

    /* Adjust premium cards */
    .cards-wrapper .row > [class*="col-"] {
        margin-bottom: 8px;
    }

    /* Tables scroll horizontally */
    .premium-table-wrapper {
        overflow-x: auto;
    }

    /* Buttons group grid to vertical */
    .btn-group-vertical {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* Input fields full width */
    .neon-input {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}
.ribbon {
    position: absolute;
    top: 0;
    left: 0;
    padding: 2px 6px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 0 0 4px 0;
    z-index: 10;
}
.bg-success { background-color: #28a745 !important; }
.bg-secondary { background-color: #6c757d !important; }
.premium-card { position: relative; padding: 1rem; }
.card-title-mini { font-weight: 600; margin-bottom: 0.5rem; }
.cards-wrapper .premium-card{padding:12px;margin-bottom:12px;}
.card-title-mini{font-weight:600;font-size:14px;letter-spacing:0.5px;}
.btn-card{font-size:11px;padding:4px 8px;margin:2px;}
.class-container{position:relative;padding-top:25px;border:2px solid yellow;border-radius:6px;margin-bottom:15px;}
.class-banner{position:absolute;top:0;left:0;background:yellow;color:#000;padding:2px 6px;font-weight:600;font-size:12px;border-bottom-right-radius:4px;}
.subject-card{padding:10px;}