/* Custom styles for ecommerce_store - Clean & Vibrant Theme */

/* Define Accent Color */
:root {
    --accent-color: #00bcd4; /* Vibrant Teal */
    --accent-color-dark: #0097a7; /* Darker Teal for hover */
}

/* General Body and Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa; /* Very light gray */
    color: #212529; /* Dark gray for text */
}

/* Product Cards */
.product-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef; /* Lighter border */
    border-radius: 10px; /* Slightly less rounded than before, still soft */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* A bit more pronounced, but still soft shadow */
    transition: all 0.2s ease-in-out;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12); /* More pronounced on hover */
}

.product-card h5 {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.product-card p {
    color: #6c757d;
    font-size: 0.85em;
    margin-bottom: 4px;
}

/* Order Summary */
.order-summary {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
}

#orderItemsList {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.order-summary h4 {
    font-weight: 600;
    color: #343a40;
    margin-top: 15px;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.2s ease-in-out;
}

.btn-success {
    background-color: var(--accent-color); /* Vibrant Teal */
    border-color: var(--accent-color);
    color: #ffffff;
}

.btn-success:hover {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}

.btn-primary {
    background-color: #e0e0e0; /* Light gray for secondary actions */
    border-color: #e0e0e0;
    color: #212529;
}

.btn-primary:hover {
    background-color: #c0c0c0;
    border-color: #c0c0c0;
}

/* Input Fields */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25); /* Teal shadow */
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
}

.navbar-brand,
.navbar-text {
    color: #212529 !important;
    font-weight: 600;
    font-size: 1.2em;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
}

/* Specific adjustments for order item quantity controls */
.order-item-quantity {
    display: flex;
    align-items: center;
}

.order-item-quantity button {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 6px;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    color: #212529;
    font-size: 0.9em;
}

.order-item-quantity button:hover {
    background-color: #e0e0e0;
}

.order-item-quantity input {
    width: 45px;
    text-align: center;
    margin: 0 6px;
    font-weight: 500;
    color: #212529;
    font-size: 0.9em;
    padding: 4px 0;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
    background-color: transparent;
    font-size: 0.95em;
}

.list-group-item:last-child {
    border-bottom: none;
}

.badge-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8em;
}

/* Table Cards (index.php) */
.table-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    cursor: pointer;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.table-card h4 {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 8px;
    font-size: 1.3em;
}

.table-card p {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.table-card.free {
    background-color: #e6fff9; /* Very light teal */
    border-color: #a7e9e9;
}

.table-card.running {
    background-color: #fff8e6; /* Very light orange/yellow (kept for distinction) */
    border-color: #ffe0b3;
}
