/* ============================================
   ILHAM GEPREK - Modern POS System Styles
   CRITICAL FIX: Remove table animations
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #667eea;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    /* CRITICAL FIX */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== NAVBAR ========== */
.navbar {
    background: linear-gradient(135deg, var(--primary), #f7931e);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 120px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 8px;
    font-size: 14px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #f7931e);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray), #5a6268);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #20c997);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #fd7e14);
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c82333);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #138496);
    color: white;
}

.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
    background-color: white;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ========== TABLES - CRITICAL FIX ========== */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius);
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    border-spacing: 0;
}

thead {
    position: relative;
}

tbody {
    position: relative;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    /* CRITICAL FIX - NO ANIMATIONS */
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    /* GPU Acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

td {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    /* GPU Acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

tr {
    /* CRITICAL - NO ANIMATIONS ON ROWS */
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

tr:hover {
    background-color: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

/* CRITICAL - DISABLE ALL TABLE CHILD ANIMATIONS */
table *, table *::before, table *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* ========== STATUS BADGES ========== */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.status-tersedia { background: linear-gradient(135deg, #d4edda, #c3e6cb); color: #155724; }
.status-dipesan { background: linear-gradient(135deg, #fff3cd, #ffeaa7); color: #856404; }
.status-terisi { background: linear-gradient(135deg, #f8d7da, #f1b0b7); color: #721c24; }
.status-selesai { background: linear-gradient(135deg, #d1ecf1, #bee5eb); color: #0c5460; }
.status-baru { background: linear-gradient(135deg, #e2e3e5, #d6d8db); color: #383d41; }
.status-diproses { background: linear-gradient(135deg, #cce5ff, #b8daff); color: #004085; }
.status-siap { background: linear-gradient(135deg, #d4edda, #c3e6cb); color: #155724; }
.status-habis { background: linear-gradient(135deg, #f8d7da, #f5c6cb); color: #721c24; }
.status-aktif { background: linear-gradient(135deg, #d4edda, #c3e6cb); color: #155724; }
.status-nonaktif { background: linear-gradient(135deg, #e2e3e5, #d6d8db); color: #383d41; }

/* ========== DASHBOARD STATS ========== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary), #764ba2);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(30deg);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ========== MENU GRID ========== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.menu-item {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    background: white;
}

.menu-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.menu-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #e9ecef;
}

.menu-info {
    padding: 20px;
}

.menu-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.menu-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.menu-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.menu-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary), #f7931e);
    color: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #ddd;
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffeaa7;
    color: #856404;
}

/* ========== SHOPPING CART ========== */
.cart-container {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-container.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    background: linear-gradient(135deg, var(--primary), #f7931e);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-total {
    padding: 25px;
    background-color: #f8f9fa;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    border-top: 1px solid #e9ecef;
    position: sticky;
    bottom: 0;
    background: white;
}

.cart-footer {
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* ========== NOTIFICATION BADGE ========== */
.notification-badge {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ========== QUANTITY CONTROLS ========== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--dark), #34495e);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f39c12;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* ========== SEARCH ========== */
.search-container {
    position: relative;
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* ========== LOADING SPINNER ========== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.d-none { display: none; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .container { padding: 0 15px; }
    .navbar-content { padding: 0 15px; }
}

@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .menu-grid { grid-template-columns: 1fr; }
    .cart-container { width: 100%; }
    .row { grid-template-columns: 1fr !important; }
    
    .table-responsive {
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .main-content { padding: 20px 0; }
    .card { padding: 20px; }
    .modal-content { width: 95%; }
    
    .btn { padding: 10px 20px; font-size: 14px; }
    .stat-number { font-size: 2rem; }
    .menu-image { height: 180px; }
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary), #f7931e);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== CONTACT CARDS ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-card {
    text-align: center;
    padding: 25px;
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ========== TABLE GRID ========== */
.meja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.meja-item {
    text-align: center;
    padding: 25px;
}

.meja-icon {
    font-size: 2.5rem;
    color: var(--success);
    margin-bottom: 15px;
}

/* ========== PROGRESS BAR ========== */
.progress {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #f7931e);
    border-radius: 4px;
}

/* ========== LOGIN/REGISTER PAGE ========== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.auth-title {
    color: var(--dark);
    margin: 0;
}

.auth-subtitle {
    color: var(--gray);
    margin-top: 5px;
}