/* ========================================================
   WARSHOP PRAPATAN - PREMIUM AESTHETIC STYLE
   ======================================================== */

:root {
    /* Color Palette */
    --primary: #6F4E37;      /* Kopi Coklat */
    --primary-dark: #4A3225; /* Kopi Gelap */
    --secondary: #C9A66B;    /* Kopi Susu Emas */
    --accent: #E8D5B7;       /* Cream */
    --dark: #1A1A1A;         /* Hitam Pekat */
    --light: #F5F5F5;        /* Putih Abu */
    --white: #FFFFFF;
    --success: #27AE60;
    --danger: #E74C3C;
    --info: #3498DB;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6F4E37 0%, #4A3225 100%);
    --gradient-accent: linear-gradient(135deg, #C9A66B 0%, #E8D5B7 100%);
    --gradient-dark: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 20px rgba(111, 78, 55, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(111, 78, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 166, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(111, 78, 55, 0.05) 0%, transparent 30%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Navbar Premium */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(111, 78, 55, 0.3);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.logo span {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    color: #C9A66B !important;
    -webkit-text-fill-color: #C9A66B !important;
    background: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.menu {
    display: flex;
    gap: 10px;
}

.menu a {
    color: var(--light);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
    z-index: -1;
}

.menu a:hover {
    color: var(--dark);
}

.menu a:hover::before {
    left: 0;
}

.menu a.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Container Premium */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-title h2 {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 15px auto;
    border-radius: var(--radius-full);
}

/* Grid Produk Premium */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Card Premium */
.card {
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(111, 78, 55, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--secondary);
}

.card:hover::before {
    opacity: 0.1;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-img-container {
    overflow: hidden;
    position: relative;
}

.card-img-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(26,26,26,0.8), transparent);
}

.card-body {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.nama {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.harga {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.harga span {
    font-size: 0.9rem;
    color: var(--accent);
}

.stok {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stok::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Input Premium */
.input-jumlah {
    width: 100%;
    padding: 12px 15px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(111, 78, 55, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-normal);
}

.input-jumlah:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(201, 166, 107, 0.2);
}

.input-jumlah::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Button Premium */
.btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5A2B 0%, #6F4E37 100%);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(111, 78, 55, 0.4);
}

.btn-primary-full {
    width: 100%;
}

/* Metode Pembayaran */
.metode-bayar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.metode-bayar label {
    padding: 20px;
    background: rgba(45, 45, 45, 0.6);
    border: 2px solid rgba(111, 78, 55, 0.3);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    font-weight: 600;
}

.metode-bayar label:hover {
    border-color: var(--secondary);
    background: rgba(111, 78, 55, 0.2);
}

.metode-bayar input:checked + label {
    border-color: var(--secondary);
    background: var(--gradient-primary);
    color: var(--white);
}

.metode-bayar input {
    display: none;
}

.metode-bayar label span {
    display: block;
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Table Premium */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(45, 45, 45, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

th {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(111, 78, 55, 0.2);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(111, 78, 55, 0.1);
}

/* Alert Premium */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Summary Box Premium */
.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.box {
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(111, 78, 55, 0.3);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
}

.box:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.box h3 {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.box h1 {
    font-size: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Page */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(111, 78, 55, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.login-box h2 {
    margin-bottom: 30px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(111, 78, 55, 0.3);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 15px;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(201, 166, 107, 0.2);
}

/* Struk / Receipt */
.struk {
    width: 320px;
    margin: 20px auto;
    padding: 25px;
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
}

.stru-header {
    text-align: center;
    border-bottom: 2px dashed var(--dark);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.struk-items {
    margin-bottom: 15px;
}

.struk-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
}

.struk-total {
    border-top: 2px dashed var(--dark);
    padding-top: 15px;
    font-weight: bold;
}

.struk-footer {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    color: #666;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1