/* ============================================
   Admin Panel Styles - Recurring
   ============================================ */

/* ============================================
   Layout Structure
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    margin-left: 260px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-wrapper.expanded {
    margin-left: 70px;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-height: calc(100vh - 60px);
}

/* App Container */
.app-container {
    padding: 0;
}

/* ============================================
   Sidebar Styles
   ============================================ */
.sidebar-wrapper {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1045;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-wrapper.collapsed {
    width: 70px;
}

/* Sidebar brand and text transitions */
.sidebar-wrapper .sidebar-brand-text,
.sidebar-wrapper .sidebar-text {
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar-wrapper.collapsed .sidebar-brand-text,
.sidebar-wrapper.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: none;
}

.sidebar-wrapper.collapsed .sidebar-section {
    display: none;
}

.sidebar-wrapper.collapsed .sidebar-header {
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
    flex-direction: column;
}

.sidebar-wrapper.collapsed .sidebar-expanded-content {
    display: none !important;
}

.sidebar-wrapper.collapsed .sidebar-header {
    display: none !important;
}

.sidebar-wrapper.collapsed .sidebar-collapsed-content {
    display: block !important;
}

.sidebar-wrapper.collapsed .sidebar-toggle {
    display: none;
}

.sidebar-wrapper.collapsed .sidebar-expand-btn {
    display: block !important;
}

.sidebar-wrapper.collapsed .sidebar-menu {
    padding: 0.5rem !important;
}

.sidebar-wrapper.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem;
    border-radius: 8px;
    position: relative;
}

.sidebar-wrapper.collapsed .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-wrapper.collapsed .sidebar-icon {
    font-size: 1.3rem;
    margin: 0 !important;
}

/* Sidebar Separator Styles */
.sidebar-separator .sidebar-collapsed-divider {
    display: none;
}

.sidebar-separator .sidebar-divider {
    display: block;
    opacity: 0.3;
}

.sidebar-wrapper.collapsed .sidebar-separator .sidebar-collapsed-divider {
    display: block;
}

.sidebar-wrapper.collapsed .sidebar-separator .sidebar-divider {
    display: none;
}

/* ============================================
   Sidebar Icons
   ============================================ */
.sidebar-wrapper .sidebar-icon {
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

/* ============================================
   Sidebar Toggle Button
   ============================================ */
.sidebar-toggle {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#toggleIcon {
    transition: transform 0.3s ease;
}

/* ============================================
   Nav Link Styles
   ============================================ */
.sidebar-wrapper .nav-link {
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    padding: 0.6rem 0.875rem;
    font-size: 0.875rem;
}

.sidebar-wrapper .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-wrapper .nav-link.active {
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
}

/* Sidebar Header */
.sidebar-header {
    padding: 1rem 1.25rem !important;
}

.sidebar-brand-text {
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 1rem 0.875rem !important;
}

.sidebar-menu .nav-item.sidebar-section .nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.sidebar-icon {
    font-size: 1rem;
    min-width: 20px;
}

/* ============================================
   Expand Button Styling
   ============================================ */
.sidebar-expand-btn button {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidebar-expand-btn button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
}

/* ============================================
   Main Content
   ============================================ */
main {
    transition: margin-left 0.3s ease;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991.98px) {
    .sidebar-wrapper {
        display: none;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }
}

@media (min-width: 992px) {
    .navbar .mobile-toggle {
        display: none;
    }
}

/* ============================================
   Navbar Styles
   ============================================ */
.navbar {
    z-index: 1040;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Card Styles
   ============================================ */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Table Styles
   ============================================ */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
    transition: all 0.2s ease;
}

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

.btn:active {
    transform: translateY(0);
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-header {
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* ============================================
   Form Styles
   ============================================ */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ============================================
   Alert Styles
   ============================================ */
.alert {
    border: none;
    border-radius: 8px;
}

/* ============================================
   Badge Styles
   ============================================ */
.badge {
    font-weight: 500;
}

/* ============================================
   Scrollbar Styles
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Sidebar scrollbar */
.sidebar-wrapper::-webkit-scrollbar {
    width: 4px;
}

.sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Foodcourt Styles
   ============================================ */

/* Index Page */
.badge-pembayaran {
    font-size: 0.75rem;
    margin-right: 2px;
}

.lampiran-preview {
    max-width: 50px;
    max-height: 50px;
    object-fit: cover;
    cursor: pointer;
}

/* Create/Edit Form */
.payment-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.payment-group.active {
    background-color: #e7f3ff;
    border-color: #0d6efd;
}

.payment-input {
    display: none;
}

.payment-group.active .payment-input {
    display: block;
}

.file-preview {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.current-file {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

/* Show/Detail Page */
.detail-label {
    font-weight: 600;
    color: #6c757d;
}

.detail-value {
    font-size: 1rem;
}

.payment-badge {
    font-size: 0.9rem;
    padding: 8px 15px;
}

.file-preview-large {
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* ============================================
   Mobile Data Cards
   ============================================ */
.mobile-data-card {
    border-left: 4px solid var(--bs-primary);
    transition: all 0.2s ease;
}

.mobile-data-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.mobile-data-card .card-title {
    font-size: 1rem;
    line-height: 1.3;
}

.mobile-data-card .fw-medium {
    font-weight: 500;
    font-size: 0.9rem;
}

.mobile-data-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4em 0.6em;
}

.mobile-data-card .dropdown-toggle::after {
    display: none;
}

.mobile-data-card .dropdown-menu {
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.mobile-data-card .dropdown-item {
    padding: 0.5rem 1rem;
}

.mobile-data-card .dropdown-item:hover {
    background-color: var(--bs-light);
}

.mobile-data-card .text-success {
    color: #198754 !important;
}

/* Responsive adjustments for search box */
@media (max-width: 767.98px) {
    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }
}

/* Card border variations for different types */
.mobile-data-card[data-type="foodcourt"] {
    border-left-color: #0d6efd;
}

.mobile-data-card[data-type="passgate"] {
    border-left-color: #6f42c1;
}

/* Filter Date Input */
.filter-date-input {
    width: 100%;
    min-width: 220px;
}

@media (max-width: 767.98px) {
    .filter-date-input {
        min-width: 100%;
    }
}

/* Filter Text Input Responsive */
.filter-text-input {
    width: 100%;
    max-width: 220px;
}

@media (max-width: 767.98px) {
    .filter-text-input {
        max-width: 100%;
    }
}


