/* Sweet Bakery - Freshly Baked Every Day */
/* Tema Warna Kuning Bakery */

:root {
    --primary-yellow: #F4D03F;
    --dark-yellow: #D4AC0D;
    --light-yellow: #FCF3CF;
    --cream: #FEF9E7;
    --brown: #8B4513;
    --dark-brown: #5D4037;
    --soft-red: #E74C3C;
    --light-blue: #85C1E9;
    --white: #FFFFFF;
    --gray: #95A5A6;
    --light-gray: #ECF0F1;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream);
    color: var(--dark-brown);
    line-height: 1.6;
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    color: var(--dark-brown);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo-text span {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--brown);
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-brown);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    color: var(--dark-brown);
    box-shadow: 0 4px 15px rgba(244, 208, 63, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 208, 63, 0.5);
}

.btn-customer {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    color: var(--dark-brown);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.btn-admin {
    background: linear-gradient(135deg, var(--light-blue) 0%, #3498DB 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(133, 193, 233, 0.4);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(133, 193, 233, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #58D68D 0%, #27AE60 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #EC7063 0%, var(--soft-red) 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--dark-yellow);
    color: var(--dark-brown);
}

.btn-outline:hover {
    background: var(--primary-yellow);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-yellow) 100%);
    padding: 40px 20px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-icon {
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.hero-icon img{
    width:150px;
    height:auto;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 3rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.hero .slogan {
    font-size: 1.3rem;
    color: var(--brown);
    font-style: italic;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.hero-btn {
    min-width: 200px;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.hero-btn .icon {
    font-size: 2.5rem;
}

.hero-btn .label {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-btn.guest {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    color: var(--dark-brown);
}

.hero-btn.login {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    color: var(--dark-brown);
}

.hero-btn.register {
    background: linear-gradient(135deg, #58D68D 0%, #27AE60 100%);
    color: white;
}

.hero-btn.admin {
    background: linear-gradient(135deg, var(--light-blue) 0%, #3498DB 100%);
    color: white;
}

/* Form Styles */
.form-container {
    max-width: 450px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header .icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.form-header h2 {
    color: var(--dark-brown);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-brown);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--cream);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: white;
}

.form-control::placeholder {
    color: var(--gray);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.form-footer a {
    color: var(--dark-yellow);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

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

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

.alert-danger {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEEBA;
}

/* Product Grid */
.products-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--soft-red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 5px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-yellow);
    margin-bottom: 10px;
}

.product-stock {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.product-stock.low {
    color: var(--soft-red);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
}

/* Cart Styles */
.cart-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.cart-table {
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart-table table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--primary-yellow);
    color: var(--dark-brown);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--light-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.quantity-control button:hover {
    background: var(--primary-yellow);
}

.quantity-control span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart-summary h3 {
    margin-bottom: 20px;
    color: var(--dark-brown);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--light-gray);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-yellow);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-yellow);
}

/* Checkout Styles */
.checkout-section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.checkout-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.checkout-form h3 {
    margin-bottom: 20px;
    color: var(--dark-brown);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-yellow);
}

.payment-method {
    background: var(--cream);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.payment-method .icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.payment-method h4 {
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.payment-method p {
    color: var(--gray);
    font-size: 0.9rem;
}

.upload-area {
    border: 2px dashed var(--dark-yellow);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.upload-area:hover {
    background: var(--light-yellow);
}

.upload-area .icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Admin Dashboard */
.admin-header {
    background: linear-gradient(135deg, var(--light-blue) 0%, #3498DB 100%);
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 260px;
    background: var(--dark-brown);
    color: white;
    padding: 30px 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-menu li a .icon {
    font-size: 1.3rem;
}

.main-content {
    flex: 1;
    padding: 30px;
    background: var(--cream);
}

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

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-card.primary .icon {
    background: var(--light-yellow);
}

.stat-card.success .icon {
    background: #D4EDDA;
}

.stat-card.warning .icon {
    background: #FFF3CD;
}

.stat-card.danger .icon {
    background: #F8D7DA;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--dark-brown);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Table Styles */
.data-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--light-gray);
    color: var(--dark-brown);
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.data-table tr:hover td {
    background: var(--cream);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-waiting {
    background: #FFF3CD;
    color: #856404;
}

.status-process {
    background: #CCE5FF;
    color: #004085;
}

.status-done {
    background: #D4EDDA;
    color: #155724;
}

.status-cancel {
    background: #F8D7DA;
    color: #721C24;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    color: var(--dark-brown);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-yellow);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .cart-table {
        overflow-x: auto;
    }
    
    .cart-table table {
        min-width: 600px;
    }
}

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

.empty-state .icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
