/* Global Styles */
:root {
    --sidebar-width: 255px;
    --primary-yellow: #ffc107;
    --dark-bg: #212529;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff8dc; /* Soft cream/yellow background */
}

/* Public Website Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
    z-index: 1050;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 193, 7, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    position: relative;
    font-weight: 600;
    color: #444 !important;
    margin: 0 10px;
    padding: 5px 0 !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link.active {
    color: #000 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.card:hover {
    /* transform: translateY(-5px);
    transition: transform 0.3s ease; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-link {
    text-decoration: none;
    color: var(--primary-yellow);
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Admin Sidebar Layout */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: #ffcc00; /* Bright LPPM Yellow */
    color: #000;
    padding-top: 10px;
    padding-bottom: 30px;
    z-index: 1050;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

.sidebar-brand {
    padding: 12px 16px;
    margin-bottom: 6px;
    border-bottom: none;
}

.sidebar .nav-link {
    color: #111;
    padding: 8px 14px;
    margin: 3px 10px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.82rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link.active {
    color: #fff !important;
    background-color: #0d1b2a; /* Dark Navy */
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
}

/* Admin Components */
.stat-card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.img-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.status-badge {
    width: 120px;
    display: inline-block;
    text-align: center;
}

/* Mobile Backdrop */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }

    .sidebar.show {
        left: 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .sidebar .nav-link span,
    .sidebar .sidebar-brand span {
        display: inline;
    }

    .main-content {
        margin-left: 0;
    }
/* Modern UI Utilities */
.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffdb4d 100%);
}

.bg-soft-yellow {
    background-color: #fffbeb !important;
}

.bg-warm-yellow {
    background-color: #fef3c7 !important;
}

.text-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e67e22 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

.shadow-premium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-lift:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-filter {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid #e9ecef;
    background-color: white;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-filter.active {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
}

.btn-filter:hover:not(.active) {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
    background-color: #fff9db;
    transform: translateY(-2px);
}

.btn-filter i {
    font-size: 1.1rem;
}

.mt-n4 {
    margin-top: -3rem !important;
}

/* responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
}

/* Custom Table Theme */
.table-custom-wrapper {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    background-color: #fff;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.5rem 1rem;
    border-bottom: 2px solid #f1f3f5;
}

.table-custom tbody td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
    color: #212529;
}

.table-custom tbody tr:hover {
    background-color: #fdfdfd;
}

.btn-action-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 65px;
    transition: all 0.2s;
}

.btn-action-stack i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.btn-action-stack:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: lowercase;
}

/* =============================================
   PREMIUM ACTION BUTTONS (Lihat / Edit / Hapus)
   ============================================= */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.btn-action i {
    font-size: 0.85rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-action:active {
    transform: translateY(0px);
    box-shadow: none;
}

/* View / Detail — solid sky blue */
.btn-action-view {
    background: #0ea5e9;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.35);
}
.btn-action-view:hover {
    background: #0284c7;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* Edit — solid amber/yellow */
.btn-action-edit {
    background: #f59e0b;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}
.btn-action-edit:hover {
    background: #d97706;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Delete — solid red */
.btn-action-delete {
    background: #ef4444;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}
.btn-action-delete:hover {
    background: #dc2626;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Approve / Green */
.btn-action-approve {
    background: #22c55e;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}
.btn-action-approve:hover {
    background: #16a34a;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* Return / Kembalikan — solid purple */
.btn-action-return {
    background: #8b5cf6;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
}
.btn-action-return:hover {
    background: #7c3aed;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* PDF — solid rose/red */
.btn-action-pdf {
    background: #f43f5e;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.35);
}
.btn-action-pdf:hover {
    background: #e11d48;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.4);
}

.actions-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
}