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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 50%, #000000 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #ffc107;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    color: #dc3545;
    margin: 0;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: #dc3545;
    color: #ffc107;
    font-weight: 600;
}

/* Content */
.content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #dc3545;
}

.content h1 {
    color: #dc3545;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: bold;
}

.content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid #ffc107;
}

.section {
    margin-bottom: 30px;
}

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

.stat-card {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffc107;
}

.stat-card.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffd700 100%);
    color: #000;
    border: 2px solid #dc3545;
}

.stat-icon {
    font-size: 48px;
}

.stat-info h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.stat-info p {
    opacity: 0.9;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.filter-form .form-row {
    align-items: end;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #dc3545;
    color: white;
    border: 2px solid #ffc107;
    font-weight: 600;
}

.btn-primary:hover {
    background: #c82333;
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    color: #ffc107;
}

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

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

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

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #000;
    border: 2px solid #dc3545;
    font-weight: 600;
}

.btn-warning:hover {
    background: #ffd700;
    border-color: #c82333;
    color: #000;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table thead {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffc107;
    border-bottom: 3px solid #ffc107;
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

table tbody tr:hover {
    background: #f8f9fa;
}

table tbody tr.row-warning {
    background: #ffc107;
    color: #000;
    font-weight: 500;
}

table tfoot {
    background: #f8f9fa;
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #6c757d;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge.success {
    background: #ffc107;
    color: #000;
    border: 1px solid #dc3545;
}

.badge.warning {
    background: #ffc107;
    color: #000;
    border: 1px solid #dc3545;
}

.badge.danger {
    background: #dc3545;
    color: #ffc107;
    border: 1px solid #000;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert.success {
    background: #ffc107;
    color: #000;
    border: 2px solid #dc3545;
    font-weight: 500;
}

.alert.error {
    background: #dc3545;
    color: #ffc107;
    border: 2px solid #000;
    font-weight: 500;
}

.alert .btn {
    margin-right: 10px;
    margin-top: 10px;
}

/* Transaction Page */
.transaction-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.menu-item-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.menu-item-card:hover {
    border-color: #dc3545;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    border-width: 3px;
}

.menu-item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.menu-item-card:hover .menu-image {
    transform: scale(1.1);
}

.menu-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffc107 0%, #ffd700 100%);
    color: #000;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 5px;
}

.placeholder-text {
    font-size: 12px;
    font-weight: 500;
}

.menu-item-card > .menu-item-header {
    padding: 15px;
    padding-bottom: 10px;
}

.menu-item-card > .menu-type,
.menu-item-card > .menu-stock {
    padding: 0 15px;
}

.menu-item-card > .btn {
    margin: 15px;
    margin-top: auto;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.menu-item-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
    flex: 1;
}

.menu-price {
    font-weight: 700;
    font-size: 16px;
    background: #ffc107;
    padding: 4px 8px;
    border-radius: 5px;
    color: #000;
    border: 1px solid #dc3545;
}

.menu-type {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.menu-stock {
    color: #dc3545;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
}

.cart-card {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-table {
    font-size: 14px;
}

.cart-table th,
.cart-table td {
    padding: 10px;
}

.cart-summary {
    border-top: 3px solid #dc3545;
    background: #ffc107;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    color: #000;
    font-weight: 500;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-qty {
    background: #dc3545;
    color: #ffc107;
    border: 2px solid #ffc107;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    font-weight: bold;
}

.btn-qty:hover {
    background: #c82333;
    border-color: #ffd700;
    color: #ffd700;
}

.input-small {
    width: 80px;
    padding: 5px;
    text-align: center;
}

.inline-form {
    display: inline;
}

/* Transaction Detail */
.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.transaction-total h3 {
    font-size: 24px;
    font-weight: bold;
    background: #ffc107;
    padding: 10px 20px;
    border-radius: 5px;
    color: #000;
    border: 2px solid #dc3545;
}

/* Menu Thumbnail in Table */
.menu-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
}

.menu-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .transaction-container {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: start;
    }
    
    .nav {
        margin-top: 15px;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item-image {
        height: 150px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .header,
    .form-actions,
    .nav {
        display: none;
    }
    
    .content {
        box-shadow: none;
    }
}

