/* ==== GLOBAL ====*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0d47a1, #1565c0, #f0c94a);
    background-size: 300% 300%;
    background-attachment: fixed;
    animation: bgMove 10s ease infinite;
}

@keyframes bgMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ==== LOGIN PAGE ==== */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ==== GREETING ==== */
#greeting {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: 0.3s;
}

/* ==== DASHBOAR ==== */
.dashboard-sitta {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* HEADER DASHBOARD */
.dashboard-header {
    background: white;
    padding: 28px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 35px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-ut {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.dashboard-header h1 {
    font-size: 34px;
    color: #1e2a38;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: #666;
    font-size: 15px;
}

.header-right h3 {
    font-size: 18px;
}

/* MENU DASHBOARD */
.dashboard-menu {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* CARD MENU */
.menu-card {
    background: white;
    padding: 30px;
    border-radius: 22px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.25s;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

/* icon dasbord & teksnya */
.menu-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-icon svg {
    width: 48px !important;
    height: 48px !important;
    stroke: currentColor !important;
}

.icon-book {
    color: #2e7d32;
}

.icon-truck {
    color: #1565c0;
}

.menu-card h3 {
    color: #1e2a38;
    margin-bottom: 10px;
}

.menu-card p {
    color: #666;
    line-height: 1.6;
}


/* KIRI */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LOGO */
.logo-ut {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

/* TEXT */
.stok-header h1 {
    font-size: 32px;
    color: #1e2a38;
    margin-bottom: 8px;
}

.stok-header p {
    color: #666;
    font-size: 15px;
}

/* BUTTON */
.back-btn {
    background: #1e2a38;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.back-btn:hover {
    background: #1565c0;
}

/* FOOTER */
.footer {
    padding: 20px;
    text-align: center;
    text-transform: capitalize;
}

/* TEXT COPYRIGHT */
.title {
    font-size: 15px;
    font-weight: 600;
    color: #060606;
    letter-spacing: 0.5px;
    margin: 0;
    transition: 0.3s;
}

.title:hover {
    color: #0fffff;
}


/* ==== STOCK DASHBOARD ==== */
.stok-modern {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: Arial, sans-serif;
}

/* ==== HEADER ==== */
.stok-header {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 28px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stok-header h1 {
    margin: 0 0 6px;
    font-size: 26px;
    color: #1e2a38;
}

.stok-header p {
    margin: 0;
    color: #000;
    font-size: 14px;
}

/* ==== FILTER BOX ==== */
.filter-box {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 22px;
    border-radius: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* FILTER ITEM */
.filter-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.filter-item label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* FIX SELECT ACCESSIBILITY */
.filter-item select {
    height: 48px;
    border: none;
    border-radius: 14px;
    padding: 0 14px;
    background: white;
    font-size: 15px;
    outline: none;
}

/* CHECKBOX */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 2px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #eef3fa;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
}

/* Tombol RESET */
.btn-reset {
    background: #ff0400;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.btn-reset:active {
    transform: scale(0.96);
    filter: brightness(0.9);
}

.btn-reset:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}


/* GROUP ACTION */
.filter-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    margin-left: auto;
}

/* BUTTON TAMBAH */
.btn-add-popup {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500px;
    cursor: pointer;
    transition: .2s;
}

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

.btn-reset,
.btn-add-popup {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==== TABLE WRAPPER ==== */
.stok-table-wrapper {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    padding: 26px;
    overflow-x: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* TABLE */
.stok-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.stok-table th {
    background: #1e2a38;
    color: white;
    padding: 18px 16px;
    text-align: left;
    font-size: 14px;
}

.stok-table td {
    padding: 18px 16px;
    border-bottom: 1px solid #eef2f6;
    font-size: 14px;
    color: #2c3e50;
}

/* hover */
.stok-table tbody tr {
    transition: background 0.2s ease;
}

.stok-table tbody tr:hover {
    background: #f4f8ff;
}

/* ==== STATUS BADGE ==== */
.status-aman,
.status-menipis,
.status-kosong {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-aman {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-menipis {
    background: #fff3e0;
    color: #ef6c00;
}

.status-kosong {
    background: #ffebee;
    color: #c62828;
}

/* ==== BUTTON ==== */
.action-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    justify-content: center;
    vertical-align: middle;
}

.action-cell .btn-edit,
.action-cell .btn-delete {
    width: 50px;
    padding: 6px 0;
    border: none;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 550;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-edit {
    background: #1976d2;
    color: white;
}

.btn-delete {
    background: #d32f2f;
    color: white;
}

/* ==== MODAL FORM ==== */
/* OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* CARD */
.modal-form-card {
    background: white;
    width: 95%;
    max-width: 900px;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    max-height: 90vh;
    overflow-y: auto;
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #1e2a38;
}

/* CLOSE BUTTON */
.modal-close {
    border: none;
    background: #f1f1f1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.modal-close:hover {
    background: #e0e0e0;
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* FORM GROUP */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e2a38;
}

/* INPUT */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dcdfe4;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

/* FOCUS */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1565c0;
    box-shadow:
        0 0 0 3px rgba(21, 101, 192, 0.15);
}

/* TEXTAREA */
.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

/* FULL WIDTH */
.form-group.full {
    grid-column: 1 / -1;
}

/* ACTION */
.modal-action {
    margin-top: 25px;
    text-align: right;
}

/* SAVE BUTTON */
.btn-save {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

/* ==== TRACKING MODERN (VUE VERSION) ==== */
.tracking-table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.tracking-table th {
    background: #1e2a38;
    color: #fff;
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

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

/* HEADER LAYOUT */
.tracking-header {
    width: 90%;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* KIRI */
.header-left h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e2a38;
    margin: 0;
}

/* KANAN BUTTON GROUP */
.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* BUTTON KEMBALI */
.btn-back {
    background: #1e2a38;
    color: white;
    padding: 15px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-back:hover {
    background: #1565c0;
}

/* SPACING DETAIL PAKET */
.paket-detail {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8f9fb;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* JUDUL */
.paket-title {
    margin-bottom: 10px;
    font-size: 14px;
    color: #1e2a38;
}

/* LIST BIAR RAPI */
.paket-list {
    margin: 0;
    padding-left: 18px;
}

.paket-list li {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

/* ==== BUTTON DETAIL ==== */
.btn-detail {
    background: #1565c0;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-detail:hover {
    background: #0d47a1;
    transform: translateY(-1px);
}

/* ==== LAYOUT UTAMA ==== */
.tracking-modern {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==== HEADER ==== */
.tracking-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-header h1 {
    font-size: 40px;
    font-weight: 700;
    color: #1e2a38;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
}

/* ==== FORM Detail ==== */
.tracking-form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* ERROR TEXT */
.tracking-form p {
    color: #d32f2f;
    font-size: 12px;
    margin: 4px 0 0;
}

/* ==== RESULT / TABLE WRAPPER ==== */
.tracking-result-modern {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* TABLE */
.tracking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ==== STATUS BADGE ==== */
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-proses {
    background: #fff3cd;
    color: #856404;
}

.status-perjalanan {
    background: #cce5ff;
    color: #004085;
}

.status-diterima {
    background: #d4edda;
    color: #155724;
}

.status-default {
    background: #e0e0e0;
    color: #333;
}
/* ==== BUTTONS ==== */
.btn-save,
.btn-reset {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.btn-reset {
    background: #d32f2f;
    color: #fff;
}

/* ==== MODAL DO ==== */
/* OVERLAY */
.detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* CARD */
.detail-modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
    color: #333;
}
/* HEADER */
.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
/* CLOSE */
.detail-modal-close {
    background: #eee;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
}
.detail-modal-close:hover {
    background: #ddd;
}

/* ==== TIMELINE TRACKING ==== */
.timeline {
    position: relative;
    margin-top: 10px;
    padding-left: 20px;
}

/* GARIS TIMELINE */
.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background:  #0150ab;
}

/* ITEM */
.timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

/* TITIK */
.timeline-dot {
    width: 14px;
    height: 14px;
    background: #1565c0;
    border-radius: 50%;
    margin-top: 4px;
    z-index: 1;
}

/* ISI */
.timeline-content {
    background: #ffdeb4;
    padding: 10px 12px;
    border-radius: 10px;
    width: 100%;
    border: 1px solid #eee;
}

/* WAKTU */
.timeline-time {
    font-size: 12px;
    color: #000;
    margin-bottom: 4px;
}

/* TEKS */
.timeline-text {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}
