/* General Styling */
:root {
    --primary-color: #4A90E2;
    --primary-color-dark: #357ABD;
    --secondary-color: #F5F5F5;
    --danger-color: #D0021B;
    --danger-color-dark: #A00115;
    --text-color: #333;
    --border-color: #DDD;
    --background-color: #F9F9F9;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

#app {
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

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

.app-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-color-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-tertiary:hover {
    background-color: #e9f2fc;
}

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}
.btn-danger:hover {
    background-color: var(--danger-color-dark);
}

.btn-icon {
    padding: 6px;
    border-radius: 50%;
    background: none;
}
.btn-icon .material-icons-outlined {
    font-size: 20px;
}
.btn-edit { color: var(--primary-color); }
.btn-delete { color: var(--danger-color); }

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Table */
.product-list-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}
thead {
    background-color: var(--primary-color);
    color: #fff;
}
tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}
tbody tr:hover {
    background-color: #e9f2fc;
}
.actions {
    display: flex;
    gap: 8px;
}
.text-center {
    text-align: center;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 1000;
}
.modal-content {
    background-color: #fff;
    margin: 50px 20px;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}
.modal-header, .modal-footer {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
}
.modal-footer {
    border-top: 1px solid var(--border-color);
}
.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}
.btn-close {
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}

/* Form Styling */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.form-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}
.form-group input[type="checkbox"] {
    width: auto;
}

/* Dynamic Items (Variants, Addons, etc.) */
.dynamic-item {
    padding: 15px;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    position: relative;
    background-color: #fafafa;
}
.btn-delete-item {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background-color: var(--danger-color);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}
.condiment-group {
    background-color: #f0f4f8;
    padding-bottom: 25px;
}
.options-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.option-item {
    background-color: #fff;
}
.option-delete-btn {
    top: 10px;
    right: 10px;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transitions */
.modal-fade-enter-active, .modal-fade-leave-active {
    transition: opacity 0.3s ease;
}
.modal-fade-enter-from, .modal-fade-leave-to {
    opacity: 0;
}

