:root {
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFF4BD;
    --accent-brown: #8B4513;
    --light-brown: #DEB887;
    --text-dark: #2C1810;
    --white: #FFD700;
    --gray-light: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Styling */
nav {
    background: var(--primary-yellow);
    padding: 15px 0;
    box-shadow: 0 4px 6px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: var(--accent-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: var(--secondary-yellow);
    color: var(--text-dark);
}

/* POS Section Styling */
.pos-container {
    display: grid;
    grid-template-columns: 3fr 1.5fr;
    gap: 30px;
    margin-top: 30px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-item {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    border: 2px solid var(--secondary-yellow);
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item h4 {
    color: var(--accent-brown);
    margin: 10px 0;
    font-size: 1.2em;
}

.product-item button {
    background: var(--primary-yellow);
    color: var(--accent-brown);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-item button:hover {
    background: var(--accent-brown);
    color: var(--white);
}

/* Cart Styling */
.cart {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 2px solid var(--primary-yellow);
}

.cart h3 {
    color: var(--accent-brown);
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 10px;
    margin-top: 0;
}

.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--secondary-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total {
    margin: 20px 0;
    font-size: 1.3em;
    color: var(--accent-brown);
    font-weight: bold;
}

/* Master Data Section Styling */
.product-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 2px solid var(--primary-yellow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: var(--accent-brown);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary-yellow);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-yellow);
    outline: none;
}

/* Table Styling */
.product-table-container {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px var(--shadow);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: var(--primary-yellow);
    color: var(--accent-brown);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--secondary-yellow);
}

tr:hover {
    background: var(--secondary-yellow);
}

/* Button Styling */
.add-product-btn {
    background: var(--primary-yellow);
    color: var(--accent-brown);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px var(--shadow);
}

.add-product-btn:hover {
    background: var(--accent-brown);
    color: var(--white);
    transform: translateY(-2px);
}

.edit-btn, .delete-btn {
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-btn {
    background: var(--primary-yellow);
    color: var(--accent-brown);
    margin-right: 5px;
}

.delete-btn {
    background: #dc3545;
    color: var(--white);
}

.edit-btn:hover, .delete-btn:hover {
    transform: translateY(-2px);
}

/* Reports Section Styling */
.report-filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-card h3 {
    color: var(--accent-brown);
    margin-bottom: 10px;
}

.summary-card p {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-yellow);
}

.report-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.report-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.report-tables table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.report-tables th,
.report-tables td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.report-tables th {
    background: var(--primary-yellow);
    color: var(--accent-brown);
}

@media (max-width: 768px) {
    .report-charts,
    .report-tables {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pos-container {
        grid-template-columns: 1fr;
    }

    .cart {
        position: static;
        margin-top: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.5s ease-out;
}

/* Update style navigasi */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 12px 25px;
    color: var(--accent-brown);
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--secondary-yellow);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--accent-brown);
    color: var(--white);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
} 
/* Desain tombol elegant dan mewah */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-brown), #8B4513);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
    background: linear-gradient(135deg, #8B4513, var(--accent-brown));
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #C4A484, #8B4513);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-yellow), #DAA520);
    color: var(--accent-brown);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Responsive button */
@media (max-width: 768px) {
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}

/* Styling untuk keranjang */
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--secondary-yellow);
    position: relative;
}

.cart-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 5px 0;
    color: var(--accent-brown);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.quantity-controls button {
    background: var(--primary-yellow);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--accent-brown);
    font-weight: bold;
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    right: 5px;
    top: 5px;
}

.cart-summary {
    padding-top: 15px;
    border-top: 2px solid var(--primary-yellow);
}

.subtotal {
    color: var(--accent-brown);
    font-weight: bold;
    margin: 5px 0;
}

#pay-button {
    width: 100%;
    padding: 20px;
    background: var(--primary-yellow);
    color: var(--accent-brown);
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 2.3em;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Juice ITC', 'Bubblegum Sans', cursive;
}

#pay-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pay-button:hover:not(:disabled) {
    background: var(--accent-brown);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

#clear-cart {
    width: 100%;
    padding: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clear-cart:hover {
    background: #c82333;
}

/* Styling untuk struk */
.receipt-modal {
    max-width: 250px;
    font-family: 'Courier New', monospace;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px dashed #ccc;
}

.receipt-wrapper {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.receipt-brand {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #000;
    padding-bottom: 10px;
}

.receipt-brand h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.receipt-brand p {
    margin: 2px 0;
}

.receipt-table,
.items-table,
.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.receipt-table td {
    padding: 3px 0;
}

.items-table {
    margin: 15px 0;
    border-top: 1px dashed #000;
    border-bottom: 1px dashed #000;
    padding: 10px 0;
}

.items-table th {
    text-align: left;
    padding: 5px 0;
}

.items-table td {
    padding: 3px 0;
}

.summary-table {
    margin-top: 10px;
}

.total-row {
    border-top: 1px dashed #000;
    font-weight: bold;
}

.receipt-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}

.receipt-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #ccc;
}

.btn-download, .btn-close {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-download {
    background: var(--primary-yellow);
    color: var(--accent-brown);
}

.btn-close {
    background: #dc3545;
    color: white;
}

/* Styling untuk tabel stok */
.stock-report {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.stock-report h3 {
    color: var(--accent-brown);
    margin-bottom: 15px;
}

#stockTable {
    width: 100%;
    border-collapse: collapse;
}

#stockTable th,
#stockTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#stockTable th {
    background: var(--primary-yellow);
    color: var(--accent-brown);
}

#stockTable tr:hover {
    background-color: #f8f9fa;
}

/* Styling untuk laporan */
.report-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.report-table th {
    background: var(--primary-yellow);
    color: var(--accent-brown);
}

.report-table tr:hover {
    background-color: #f8f9fa;
}

/* Modal styling */
.modal-content {
    background: linear-gradient(135deg, #fff9e6, #fff);
    padding: 40px;
    border-radius: 20px;
    max-width: 350px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border: 2px solid var(--primary-yellow);
    position: relative;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.close:hover {
    color: #dc3545;
}

/* Styling untuk manajemen data */
.data-management {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.data-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.data-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.data-buttons button:first-child {
    background: var(--primary-yellow);
    color: var(--accent-brown);
}

.data-buttons button:last-child {
    background: var(--accent-brown);
    color: white;
}

.data-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Loading overlay */
.loading-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: 9999;
}

.loading-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styling untuk login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-brown);
}

#loginForm .form-group {
    margin-bottom: 15px;
}

#loginForm input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#loginForm button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

/* Styling untuk thumbnail produk di tabel */
.product-thumb {
    width: 40px;  /* Ukuran thumbnail lebih kecil */
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info span {
    vertical-align: middle;
}
