/* CSS Variables untuk konsistensi desain */
:root {
    --primary-color: #8B6F47;
    --secondary-color: #A67C52;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --text-color: #333;
    --text-light: #666;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family) !important;
    background-color: #f5f5f5 !important;
    color: var(--text-color) !important;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 20px 20px !important;
    background: white;
    min-height: calc(100vh - 80px);
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow-x: hidden;
    display: block;
    clear: both;
}

/* Navbar Styles */
.navbar {
    background: #F5E6D3 !important;
    color: #5A4530;
    padding: 0.8rem 0;
    box-shadow: 0 1px 3px rgba(123, 94, 60, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #D4B896;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    gap: 2rem;
    width: 100%;
}

.nav-brand {
    color: #7B5E3C !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    padding: 0.2rem 0;
    margin-left: -10px;
}

.nav-brand:hover {
    color: #5A4530 !important;
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-item a {
    color: #5A4530 !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.nav-item a:hover,
.nav-item a.active {
    background: rgba(123, 94, 60, 0.15);
    color: #7B5E3C !important;
}

.user-role-badge {
    background: #E8D5B7;
    color: #5A4530;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #D4B896;
    margin-right: 1rem;
}

.nav-user {
    margin-left: auto;
}

.logout-btn {
    background: #8B4513;
    color: white !important;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn:hover {
    background: #7B5E3C;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
    margin-top: 0px !important;
}

.reports-container .page-header {
    margin-bottom: 0px !important;
    padding: 0px 0 !important;
    margin-top: 0px !important;
}

.reports-container {
    margin-top: 0px !important;
    padding-top: 0px !important;
}

.page-header h1 {
    color: #7B5E3C;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.admin-controls {
    display: flex;
    gap: 10px;
}

.btn-manage, .btn-add {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-manage {
    background: #6c757d;
    color: white;
}

.btn-add {
    background: #28a745;
    color: white;
}

/* Search Form */
.search-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: end;
}

.search-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.search-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.search-form input,
.search-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.search-form input::placeholder {
    color: #999;
}

.search-form button {
    padding: 10px 20px;
    background: #8B6F47;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-form button:hover {
    background: #7A5F3F;
}

/* Products Section */
.products-section h2 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

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

.product-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.product-details {
    padding: 15px;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.add-button {
    width: 100%;
    padding: 10px;
    background: #8B6F47;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.add-button:hover {
    background: #7A5F3F;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Cart Styles */
.cart-items-container {
    background: var(--card-background);
    background: #ffffff;
    border-radius: var(--border-radius);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-bottom: 1px solid #dee2e6;
    gap: 1rem;
}

.order-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-price {
    color: var(--text-light);
    color: #666;
    font-size: 0.9rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-button {
    background: var(--primary-color);
    background: #7B5E3C;
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qty-button:hover {
    background: var(--secondary-color);
    background: #A67C52;
}

.qty-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qty-number {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Order Summary */
.order-summary {
    background: var(--card-background);
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.order-summary h2 {
    color: var(--primary-color);
    color: #7B5E3C;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    border-top: 2px solid var(--border-color);
    border-top: 2px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.total-label {
    font-weight: 700;
    color: var(--primary-color);
    color: #7B5E3C;
}

.total-amount {
    font-weight: 700;
    color: var(--primary-color);
    color: #7B5E3C;
    font-size: 1.2rem;
}

/* Payment Options */
.payment-options {
    background: var(--card-background);
    background: #ffffff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.payment-options h3 {
    color: var(--primary-color);
    color: #7B5E3C;
    margin-bottom: 1rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* History Styles */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.history-header h2 {
    color: var(--primary-color);
    color: #7B5E3C;
    margin: 0;
}

.history-list {
    background: var(--card-background);
    background: #ffffff;
    border-radius: var(--border-radius);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.history-item:hover {
    background: var(--background-color);
    background: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-info {
    flex: 1;
}

.history-id {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.history-qty,
.history-date {
    color: var(--text-light);
    color: #666;
    font-size: 0.9rem;
}

.history-price {
    font-weight: 600;
    color: var(--primary-color);
    color: #7B5E3C;
    font-size: 1.1rem;
}

.history-page-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Notification Styles */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

.custom-notification.show {
    display: flex;
}

.custom-notification.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
    border-left: 4px solid #28a745;
}

.custom-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
    border-left: 4px solid #dc3545;
}

.custom-notification.info {
    background: #cce7f0;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
    border-left: 4px solid #17a2b8;
}

.notification-content {
    flex: 1;
}

.btn-close-notification {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.7;
}

.btn-close-notification:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Status Messages */
.status-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    color: #666;
    font-size: 1.1rem;
}

.status-message.empty {
    background: var(--card-background);
    background: #ffffff;
    border-radius: var(--border-radius);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-message a {
    color: var(--primary-color);
    color: #7B5E3C;
    text-decoration: none;
    font-weight: 600;
}

/* Add Product Section */
.add-product-section {
    background: var(--card-background);
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.add-product-section h3 {
    color: var(--primary-color);
    color: #7B5E3C;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B6F47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.15);
}

/* Button Styles */
.btn-primary {
    background: #8B6F47;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #7A5F3F;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .nav-container {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 0.5rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
}/ *   R e s t o r e d   t o   i n l i n e   C S S   -   0 7 / 1 9 / 2 0 2 5   1 4 : 0 9 : 2 5   * / 
 
 