.sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #061b44, #063b8e);
    position: fixed;
    color: white;
    padding: 35px 25px;
    box-sizing: border-box;
    border-top-right-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 8px 0 25px rgba(0,0,0,0.15);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1d72d2, #5aa7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(29,114,210,0.35);
}

.brand h2 {
    margin: 0;
    font-size: 28px;
}

.brand p {
    margin: 4px 0 0;
    color: #b9c8e8;
    font-size: 14px;
}

.menu-line {
    height: 1px;
    background: rgba(255,255,255,0.18);
    margin: 25px 0;
}

.menu-item {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 14px 16px !important;
    margin-bottom: 14px;
    border-radius: 18px;
    color: white !important;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.menu-item:hover {
    background: rgba(59,130,246,0.35);
    transform: translateX(5px);
}

.menu-item:first-of-type {
    background: linear-gradient(135deg, #0f62d6, #1d72d2);
    box-shadow: 0 8px 20px rgba(29,114,210,0.35);
}

.menu-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.menu-item b {
    margin-left: auto;
    font-size: 28px;
    font-weight: normal;
    color: #b9c8e8;
}

.logout .icon {
    color: #ff6b6b;
    background: rgba(255,107,107,0.16);
}

.content {
    margin-left: 310px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f5f9;
}

.content {
    margin-left: 360px;
    padding: 35px;
}

.content h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 25px;
}

.card {
    background: #ffffff;
    width: 240px;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
}

.no-img {
    height: 140px;
    background: #e5e7eb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 22px;
    margin: 10px 0;
}

.card p {
    font-size: 16px;
}

/* ===== TABLE MODERN ===== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

table th {
    background: linear-gradient(135deg, #0f62d6, #1d72d2);
    color: white;
    padding: 16px;
    text-align: left;
    font-size: 16px;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

table tr:hover {
    background: #f3f7ff;
}

/* BUTTON AKSI */

.action-btn {
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    margin-right: 5px;
}

.edit-btn {
    background: #2563eb;
}

.delete-btn {
    background: #dc2626;
}

.edit-btn:hover {
    background: #1d4ed8;
}

.delete-btn:hover {
    background: #b91c1c;
}

/* BUTTON TAMBAH */

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(34,197,94,0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

/* THUMBNAIL */

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: #eee;
}

/* ================= LOGIN MODERN ================= */

.login-modern {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    overflow: hidden;
    background: #f4f7fb;
}

/* PANEL KIRI */

.left-panel {
    width: 45%;
    background: linear-gradient(135deg, #021b61, #0033a0);
    color: white;
    padding: 80px;
    box-sizing: border-box;
    border-top-right-radius: 35px;
    border-bottom-right-radius: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-box {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: linear-gradient(135deg, #2196f3, #64b5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    font-weight: bold;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.left-panel h1 {
    font-size: 64px;
    margin: 0;
}

.left-panel h2 {
    font-size: 28px;
    color: #b6c7ff;
    font-weight: normal;
    margin-top: 15px;
}

.line {
    width: 120px;
    height: 5px;
    background: #3b82f6;
    border-radius: 20px;
    margin: 40px 0;
}

.desc-box {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 24px;
    line-height: 1.5;
}

.cube {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

/* PANEL KANAN */

.right-panel{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
    background:#eef4ff;
}

.login-card{
    width:100%;
    max-width:420px;
    background:#ffffff;
    border-radius:28px;
    padding:40px 30px;
    box-shadow:0 20px 60px rgba(0,0,0,.15);
}

.lock-icon {
    width: 90px;
    height: 90px;
    background: #f3f7ff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: auto;
    margin-bottom: 30px;
}

.login-card h1 {
    text-align: center;
    color: #082f8f;
    font-size: 48px;
    margin-bottom: 10px;
}

.login-card p {
    text-align: center;
    color: #5b6b8d;
    font-size: 22px;
    margin-bottom: 35px;
}

.input-box {
    margin-bottom: 22px;
}

.input-box input {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #d9e1f2;
    font-size: 18px;
    box-sizing: border-box;
}

.input-box input:focus {
    outline: none;
    border: 1px solid #2563eb;
}

.login-card button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f62d6, #1d72d2);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.login-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}

.footer-login {
    margin-top: 35px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

.error-box {
    background: #fee2e2;
    color: #dc2626;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

/* FORM MODERN */

.form-modern {
    width: 500px;
    background: white;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.form-modern input,
.form-modern select {
    width: 100%;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid #dbe3f0;
    font-size: 16px;
    box-sizing: border-box;
}

.form-modern button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg,#0f62d6,#2563eb);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.form-modern button:hover {
    opacity: 0.9;
}

/* ROLE BADGE */

.role-badge {
    padding: 8px 14px;
    border-radius: 30px;
    color: white;
    font-size: 14px;
}

.role-badge.admin {
    background: #dc2626;
}

.role-badge.kordinator {
    background: #2563eb;
}

.role-badge.teknisi {
    background: #16a34a;
}

.form-modern textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid #dbe3f0;
    font-size: 16px;
    box-sizing: border-box;
    resize: vertical;
}

.role-badge.masuk {
    background: #16a34a;
}

.role-badge.keluar {
    background: #dc2626;
}

.sidebar .logo-box,
.sidebar .logo-icon,
.sidebar .logo-text,
.sidebar .menu-list,
.sidebar .bottom-menu,
.sidebar .menu-left,
.sidebar .arrow {
    all: unset;
}

.sidebar {
    width: 270px !important;
    height: 100vh !important;
    background: linear-gradient(180deg, #061b44, #063b8e) !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    color: white !important;
    padding: 32px 22px !important;
    box-sizing: border-box !important;
    border-top-right-radius: 28px !important;
    border-bottom-right-radius: 28px !important;
    box-shadow: 8px 0 25px rgba(0,0,0,0.15) !important;
    overflow-y: auto !important;
    z-index: 99 !important;
}

.brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.brand-icon {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #1d72d2, #5aa7ff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 34px !important;
    font-weight: bold !important;
}

.brand h2 {
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 1.1 !important;
}

.brand p {
    margin: 5px 0 0 !important;
    color: #b9c8e8 !important;
    font-size: 14px !important;
}

.menu-line {
    height: 1px !important;
    background: rgba(255,255,255,0.18) !important;
    margin: 28px 0 !important;
}

.menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 13px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
    box-sizing: border-box !important;
}

.menu-item:hover {
    background: rgba(59,130,246,0.35) !important;
    transform: translateX(4px) !important;
}

.menu-item .icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,0.10) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.menu-item b {
    margin-left: auto !important;
    font-size: 24px !important;
    font-weight: normal !important;
    color: #b9c8e8 !important;
}

.logout .icon {
    color: #ff6b6b !important;
    background: rgba(255,107,107,0.16) !important;
}

.content {
    margin-left: 320px !important;
    padding: 35px !important;
}

.brand-icon {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 16px !important;
    font-size: 34px !important;
    font-weight: bold !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card:hover{
    transform: translateY(-5px);
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.sidebar{
    overflow-y: auto;
}

.form-barang {
    width: 720px;
    background: #fff;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: #0f3c78;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    font-size: 15px;
}

.form-group.full {
    grid-column: span 2;
}

.btn-simpan {
    grid-column: span 2;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: #1d72d2;
    color: white;
    font-size: 17px;
    font-weight: bold;
}

.stok-tipis{
    border: 2px solid #ef4444 !important;
    background: #fff5f5 !important;
}

.notif-tipis{
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.search-box{
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.search-box input{
    width: 350px !important;
    height: 56px !important;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    font-size: 14px;
}

.search-box button{
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.search-box button:hover{
    background: #1d4ed8;
}

.stat-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 22px 0 28px;
}

.stat-card{
    background: white;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid #2563eb;
}

.stat-card h3{
    font-size: 28px;
    margin: 0;
    color: #0f3c78;
}

.stat-card p{
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 600;
}

.stat-icon{
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.stat-card.danger{
    border-left-color: #ef4444;
}

.stat-card.keluar{
    border-left-color: #f59e0b;
}

.edit-preview{
    max-width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    background: #f3f4f6;
    margin-bottom: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.hapus-gambar{
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #dc2626 !important;
}

.search-box{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 20px 0 24px !important;
}

.search-box input{
    width: 360px !important;
    height: 56px !important;
    padding: 0 18px !important;
    border: none !important;
    border-radius: 14px !important;
    background: white !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05) !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}

.search-box button{
    width: auto !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 24px !important;
    border: none !important;
    border-radius: 14px !important;
    background: #2563eb !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.stok-kosong{
    border: 2px solid #555 !important;
    background: #f1f1f1 !important;
}

.notif-kosong{
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #555;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.stok-kosong{
    border:2px solid #555 !important;
    background:#f1f1f1 !important;
}

.notif-kosong{
    margin-top:10px;
    padding:8px;
    border-radius:8px;
    background:#555;
    color:white;
    font-weight:bold;
    text-align:center;
}

.filter-laporan{
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-laporan select,
.filter-laporan button,
.btn-export{
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    font-weight: bold;
}

.filter-laporan select{
    background: white;
    border: 1px solid #dbe3f0;
}

.filter-laporan button{
    background: #2563eb;
    color: white;
}

.btn-export{
    background: #16a34a;
    color: white;
}

.filter-laporan{
    display:flex;
    align-items:center;
    gap:15px;
    margin:25px 0;
    flex-wrap:wrap;
}

.filter-box{
    background:#fff;
    padding:15px;
    border-radius:16px;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.filter-box label{
    font-weight:600;
    color:#1e3a8a;
    font-size:14px;
}

.filter-box input[type="date"]{
    border:none;
    background:#f1f5f9;
    padding:10px 14px;
    border-radius:10px;
    font-size:14px;
    outline:none;
}

.filter-laporan button{
    background:#2563eb;
    color:white;
    border:none;
    padding:12px 22px;
    border-radius:12px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.filter-laporan button:hover{
    background:#1d4ed8;
}

.btn-export{
    background:#16a34a;
    color:white;
    padding:12px 22px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.btn-export:hover{
    background:#15803d;
}

.btn-masuk{
    background:#16a34a;
    color:white;
    padding:12px 20px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
}

.btn-keluar{
    background:#dc2626;
    color:white;
    padding:12px 20px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
}

.btn-semua{
    background:#64748b;
    color:white;
    padding:12px 20px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
}

/* STOK AMAN */
.stok-aman{
    background: #ecfff1;
    border: 2px solid #22c55e;
}

/* STOK MENIPIS */
.stok-tipis{
    background: #fff1f1;
    border: 2px solid #ef4444;
}

/* STOK KOSONG */
.stok-kosong{
    background: #f1f1f1;
    border: 2px solid #666;
}

/* ================= MOBILE TEKNISI ================= */
@media (max-width: 768px){

    .sidebar{
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0 0 24px 24px !important;
        padding: 18px !important;
    }

    .brand{
        margin-bottom: 15px !important;
    }

    .menu-line{
        display: none !important;
    }

    .menu-item{
        padding: 10px 12px !important;
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }

    .menu-item .icon{
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 16px !important;
    }

    .content{
        margin-left: 0 !important;
        padding: 20px !important;
    }

    h1{
        font-size: 26px !important;
    }

    .search-box{
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .search-box input,
    .search-box button{
        width: 100% !important;
    }

    .stat-container{
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .stat-card{
        padding: 15px !important;
    }

    .stat-card h3{
        font-size: 22px !important;
    }

    .card-container{
        grid-template-columns: 1fr !important;
    }

    .card{
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .card img{
        width: 100% !important;
        height: 190px !important;
        object-fit: contain !important;
    }

    table{
        font-size: 13px !important;
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .filter-laporan{
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .filter-box,
    .filter-laporan button,
    .btn-export,
    .btn-masuk,
    .btn-keluar,
    .btn-semua{
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .form-barang{
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
    }

    .form-group.full,
    .btn-simpan{
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px){

    .content{
        padding: 18px !important;
    }

    table{
        display: block !important;
        overflow-x: auto !important;
        font-size: 12px !important;
    }

    table th,
    table td{
        padding: 8px !important;
        white-space: normal !important;
    }

    .action-btn,
    .edit-btn,
    .delete-btn{
        display: block !important;
        margin: 4px 0 !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
        text-align: center !important;
    }

    .btn{
        display: inline-block !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 768px){

    table th:last-child,
    table td:last-child{
        min-width: 70px !important;
        width: 70px !important;
    }

    table td:last-child{
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        align-items: center !important;
    }

    table td:last-child a{
        width: 48px !important;
        display: block !important;
        padding: 5px 0 !important;
        font-size: 10px !important;
        border-radius: 7px !important;
        text-align: center !important;
        margin: 0 !important;
    }
}

/* MOBILE TOMBOL AKSI */
@media (max-width:768px){

    td:last-child{
        min-width: 80px !important;
    }

    td:last-child a{
        display:block !important;
        width:100% !important;
        margin-bottom:5px !important;
        text-align:center !important;
        box-sizing:border-box !important;
        font-size:11px !important;
        padding:6px 0 !important;
    }

}

@media (max-width:768px){

    td:last-child button{
        display:block !important;
        width:100% !important;
        margin-bottom:5px !important;
        font-size:11px !important;
    }

}

@media (max-width:768px){

    table{
        min-width: 650px !important;
    }

    table th:last-child,
    table td:last-child{
        width: 85px !important;
        min-width: 85px !important;
        max-width: 85px !important;
    }

    table td:last-child a{
        display: block !important;
        width: 60px !important;
        margin: 3px auto !important;
        padding: 6px 0 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        text-align: center !important;
        border-radius: 7px !important;
    }
}

/* MOBILE RESPONSIVE FINAL */
@media (max-width: 768px){

    body{
        overflow-x: hidden !important;
    }

    .content{
        margin-left: 0 !important;
        padding: 16px !important;
    }

    .sidebar{
        width: 150px !important;
        min-width: 150px !important;
    }

    .content{
        margin-left: 155px !important;
    }

    .table-wrapper{
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    table{
        min-width: 760px !important;
        width: 760px !important;
        font-size: 12px !important;
    }

    table th,
    table td{
        padding: 8px !important;
        white-space: nowrap !important;
    }

    table td img{
        width: 45px !important;
        height: 45px !important;
        object-fit: contain !important;
    }

    table td:last-child a{
        display: block !important;
        width: 58px !important;
        margin: 3px 0 !important;
        padding: 6px 0 !important;
        font-size: 10px !important;
        text-align: center !important;
        border-radius: 7px !important;
    }
}

/* FIX TABLE MOBILE */
.table-wrapper{
    width: 100%;
    overflow-x: auto;
}

.table-wrapper table{
    width: 100%;
    border-collapse: collapse;
}

@media (max-width:768px){
    .table-wrapper{
        overflow-x: auto !important;
        background: white;
        border-radius: 14px;
    }

    .table-wrapper table{
        min-width: 850px !important;
        width: 850px !important;
        display: table !important;
        border-collapse: collapse !important;
    }

    .table-wrapper tr{
        display: table-row !important;
    }

    .table-wrapper th,
    .table-wrapper td{
        display: table-cell !important;
        padding: 10px !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }

    .table-wrapper td img{
        width: 55px !important;
        height: 55px !important;
        object-fit: contain !important;
    }

    .table-wrapper td:last-child a{
        display: block !important;
        width: 60px !important;
        margin: 4px auto !important;
        padding: 6px 0 !important;
        font-size: 11px !important;
        text-align: center !important;
    }
}
.table-wrapper{
    margin-top: 28px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.table-wrapper table{
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper th{
    background: #1f73d8;
    color: white;
    padding: 18px;
    text-align: left;
    font-size: 15px;
}

.table-wrapper td{
    padding: 18px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.table-wrapper tr:hover{
    background: #f8fbff;
}

.table-wrapper img{
    width: 80px;
    height: 70px;
    object-fit: contain;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
}

.edit-btn{
    background: #2563eb;
    color: white !important;
    padding: 8px 14px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.delete-btn{
    background: #dc2626;
    color: white !important;
    padding: 8px 14px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn{
    background: #16a34a;
    color: white;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 8px 18px rgba(22,163,74,0.25);
}
.top-action{
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.btn-backup{
    background: #2563eb;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(37,99,235,0.3);
}

.btn-backup:hover{
    background: #1d4ed8;
}

.btn-backup-list{
    background: #16a34a;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(22,163,74,0.3);
}

.btn-backup-list:hover{
    background: #15803d;
}
@media (max-width: 768px) {
    body.login-modern {
        display: block;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        min-height: 100vh;
        padding: 30px 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-card {
        width: 100%;
        max-width: 380px;
        padding: 30px 22px;
        border-radius: 22px;
    }

    .login-card h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .login-card p {
        font-size: 20px;
    }

    .input-box input {
        width: 100%;
        height: 54px;
        font-size: 16px;
    }

    .login-card button {
        width: 100%;
        height: 56px;
        font-size: 18px;
    }
}

body.login-modern{
    margin:0;
    min-height:100vh;
    background:linear-gradient(
        135deg,
        #0f172a 0%,
        #1e3a8a 50%,
        #2563eb 100%
    );
}