/* Mulai CSS untuk Dasbor admin*/
/* ===============================
   CARD MODERN (SISWA)
=================================*/
.card-siswa-modern {
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.card-siswa-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}


/* ===============================
   HEADER FIX (JUDUL SISWA)
=================================*/
.siswa-title {
    display: flex;
    align-items: center;
}

.siswa-title i {
    margin-right: 8px;
    font-size: 18px;
}

.siswa-title .title-text {
    margin-left: 2px;
}

.card-siswa-modern .m-portlet__head {
    padding-top: 12px;
    padding-bottom: 12px;
}

.card-siswa-modern .m-portlet__body {
    padding-top: 10px;
}


/* ===============================
   HERO (ACTIVE STUDENTS)
=================================*/
.green_siswa{
    color: #2e7d32 !important; /* hijau lebih gelap */
}
.siswa-hero {
    text-align: center;
    margin-bottom: 6px;
}

.siswa-number {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    
}

.siswa-label {
    font-size: 12px;
    color: #888;
}


/* ===============================
   DIVIDER
=================================*/
.siswa-divider {
    margin: 8px 0 10px;
    border-top: 1px solid #eee;
}


/* ===============================
   GRID KPI (COMPACT)
=================================*/
.siswa-grid .col-4 {
    margin-bottom: 8px;
}

/* Biar grid tetap rapi kalau item > 6 */
.siswa-grid {
    display: flex;
    flex-wrap: wrap;
}

/* Versi 2 kolom (dipakai calon siswa) */
.siswa-grid .col-6 {
    margin-bottom: 8px;
}

/* ===============================
   KPI ITEM (COMPACT MODE)
=================================*/
.kpi-item {
    text-align: center;
    padding: 5px 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.kpi-item:hover {
    background: #f8f9fa;
}


/* ICON */
.kpi-item i {
    font-size: 14px;
    margin-bottom: 2px;
}


/* LABEL */
.kpi-label {
    font-size: 10.5px;
    margin-bottom: 1px;
    color: #777;
    line-height: 1.1;
    min-height: 15px;
}


/* NUMBER */
.kpi-number {
    font-size: 14px;
    font-weight: 600;
    margin-top: 0;
    color: #333; 
}


/* ===============================
   CUSTOM COLORS
=================================*/
.text-purple {
    color: #6f42c1;
}


/* ===============================
   CONFIRM REQUEST (LIST CARD)
=================================*/
.confirm-body {
    padding-top: 5px;
}

/* ITEM */
.confirm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;     /* dari 8px → 6px */
    margin-bottom: 4px;    /* dari 6px → 4px */
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
}

/* LEFT */
.confirm-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-left i {
    font-size: 14px;
}

/* BADGE */
.confirm-badge {
    background: #e9ecef;
    color: #555;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* HOVER */
.confirm-item:hover {
    background: #f8f9fa;
}

/* HIGHLIGHT (ADA DATA) */
.confirm-item.has-value {
    background: #fff3cd;
}

.confirm-item.has-value .confirm-badge {
    background: #ffc107;
    color: #000;
}

/* Hilangkan gap di item terakhir */
.confirm-item:last-child {
    margin-bottom: 0;
}

/* ===============================
   MENU GRID MODERN
=================================*/
.menu-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
}

/* ITEM */
.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-size: 12px;
    transition: all 0.2s ease;
    background: #fafafa;
}

/* ICON */
.menu-item i {
    font-size: 14px;
}

/* HOVER */
.menu-item:hover {
    background: #f1f3f5;
    transform: translateY(-1px);
}

/* ===============================
   CARD VARIANTS (SOFT COLOR)
=================================*/

/* SISWA */
.card-siswa-bg {
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    border-left: 4px solid #2196f3;
}

/* CALON SISWA */
.card-calon-bg {
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    border-left: 4px solid #00acc1;
}

/* PEGAWAI */
.card-pegawai-bg {
    background: linear-gradient(135deg, #f3e5f5, #ffffff);
    border-left: 4px solid #8e24aa;
}

/* CONFIRM REQUEST */
.card-confirm-bg {
    background: linear-gradient(135deg, #fff8e1, #ffffff);
    border-left: 4px solid #ffb300;
}

/* OUT OF STOCK (alert) */
.card-danger-bg {
    background: linear-gradient(135deg, #fdecea, #ffffff);
    border-left: 4px solid #e53935;
}

/* KEUANGAN */
.card-keuangan-bg {
    background: linear-gradient(135deg, #e8f5e9, #ffffff);
    border-left: 4px solid #43a047;
}

/* ===============================
   OUT OF STOCK - MODERN ALERT
=================================*/

/* CARD */
.m-widget1 {
    border-radius: 12px;
}

/* TABLE CLEAN */
.m-table {
    font-size: 12px;
}

/* TABLE CLEAN */
.m-table tbody tr {
    background: #fff;
}

/* HOVER */
.m-table tbody tr:hover {
    background: #f9f9f9;
}

/* HEADER SOFT */
.m-table thead th {
    background: #fff5f5 !important;
    color: #c62828;
    font-weight: 600;
}

/* REMOVE BORDER MERAH */
.m-table--border-danger td,
.m-table--border-danger th {
    border-color: #eee !important;
}

/* LOW STOCK (OPTIONAL kalau mau pakai) */
.row-warning {
    background: #fff8e1;
}

/* BADGE */
.stock-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* STOK 0 */
.stock-danger {
    background: #fdecea;
    color: #d32f2f;
}

/* BADGE NORMAL */
.stock-normal {
    background: #e9ecef;
    color: #444;
}

/* ===============================
   KEUANGAN CARD
=================================*/

/* CASHFLOW */
.keuangan-cashflow {
    font-size: 12px;
}

.cash-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.cash-item .label {
    color: #666;
}

.cash-item .value {
    font-weight: 600;
}

/* NET lebih tegas */
.cash-item.net {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
}

/* ===============================
   MODERN SEGMENTED TAB
=================================*/
.keuangan-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

/* BUTTON */
.tab-btn {
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 7px;
    background: #f1f3f5;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* HOVER */
.tab-btn:hover {
    background: #e9ecef;
}

/* ACTIVE */
.tab-btn.active {
    background: #43a047;
    color: #fff;
    font-weight: 500;
}
/* Akhir CSS untuk Dasbor admin*/




/*Mulai CSS login*/
/* ===============================
   LOGIN CLEAN MODERN (SCOPED)
=================================*/

/* =========================
   LOGIN LAYOUT
========================= */

.login-wrapper {
    display: flex;
    height: 100vh;
}

/* =========================
   LEFT IMAGE (DOMINAN)
========================= */

.login-image {
    flex: 6; /* 60% */
    position: relative;
    background: url('../../../assets/app/media/img/bg/bg-8.jpg') no-repeat center center;
     background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* overlay biar tidak terlalu terang */
.login-image .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    z-index: 1;
    display: none;
}

.login-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4), transparent);
    
}

/* =========================
   RIGHT FORM
========================= */

.login-form-wrapper {
    flex: 4; /* 40% */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
    background: linear-gradient(135deg, #f5f7fb, #eef2ff);
}

/* =========================
   CARD
========================= */

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.4);
    animation: fadeUp 0.6s ease;
}

/* =========================
   TITLE
========================= */

.login-title {
    text-align: center;
    margin-bottom: 28px;
}

.login-title h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #1f2937;
}

.login-title p {
    font-size: 13.5px;
    color: #6b7280;
    margin-top: 4px;
}

/* =========================
   INPUT MODERN
========================= */

.input-modern {
    position: relative;
}

.input-modern i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-modern input {
     font-size: 14px;
    font-weight: 400;
    color: #111827;
    height: 48px;
    border-radius: 10px;
    border: none;
    background: #eef1f7;
    padding-left: 40px;
    transition: all 0.25s ease;
}

.input-modern input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(93,120,255,0.15);
}

.input-modern input:focus + i {
    color: #5d78ff;
}

.input-modern input::placeholder {
    color: #9ca3af;
}

.input-modern:focus-within i {
    color: #5d78ff;
}
/* =========================
   ACTION
========================= */

.login-action {
    margin: 15px 0;
}

/* =========================
   BUTTON
========================= */

.btn-login {
    width: 100%;
    height: 46px;

 
    font-size: 14.5px;
    font-weight: 400;
    letter-spacing: 0.3px;

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: linear-gradient(135deg, #5d78ff, #6c8cff);
    border: none;

    box-shadow: 0 8px 20px rgba(93,120,255,0.25);
    transition: all 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(93,120,255,0.4);
}

.btn-login:active {
    transform: scale(0.98);
}

/* =========================
   FOOTER
========================= */

.login-footer {
    margin-top: 10px;
    text-align: center;
}

.login-footer a {
    font-size: 13px;
    color: #5d78ff;
    font-weight: 500;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 992px) {

    /* STACK LAYOUT */
    .login-wrapper {
        display: flex !important;
        flex-direction: column;
        height: auto;
    }

    /* IMAGE JADI HEADER */
    .login-image {
        display: block !important;
        width: 100%;
        height: 180px; /* bisa adjust */
        flex: none;
    }

    /* HILANGKAN OVERLAY (BIAR JERNIH) */
    .login-image .overlay,
    .login-image::after {
        display: none !important;
    }

    /* FORM DI BAWAH */
    .login-form-wrapper {
        width: 100%;
        padding: 16px;
        display: block !important;
        background: #f5f7fb;
    }

    /* CARD */
    .login-card {
        max-width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .login-card-inner {
        position: relative;
        z-index: 2;
        background: #fff;
        padding: 20px;
        border-radius: 16px;

        /* sedikit overlap ke image (premium feel) */
        margin-top: -40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .login-logo img {
        max-height: 50px;
    }
    
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   IMAGE FOOTER (COPYRIGHT)
========================= */

.login-image-footer {
    position: absolute;
    bottom: 20px;
    left: 30px;
    right: 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 12px;
     color: rgba(31, 41, 55, 0.7); /* abu gelap soft */
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 8px;
    z-index: 3;
}

/* =========================
   PREMIUM LINK ANIMATION
========================= */

.login-image-footer a {
    position: relative;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

/* underline base */
.login-image-footer a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #5d78ff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

/* hover */
.login-image-footer a:hover {
    color: #5d78ff;
}

.login-image-footer a:hover::after {
    width: 100%;
}


/* =========================
   LOGIN LOGO
========================= */

.login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.login-logo img {
    max-height: 60px;
    object-fit: contain;
    transition: all 0.25s ease;
}

/* hover subtle */
.login-logo img:hover {
    transform: scale(1.05);
}

.login-logo::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #e5e7eb;
    margin: 10px auto 0;
}

/* PASSWORD TOGGLE */
.input-password {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #5d78ff;
    cursor: pointer;
    font-weight: 500;
}

/* LOADING BUTTON */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading .btn-text::after {
    content: '...';
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ERROR STATE */
.input-error input {
    box-shadow: 0 0 0 2px rgba(220,53,69,0.2);
    background: #fff5f5;
}

.error-text {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}