/* Hela Rasa Owner Admin Portal CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    --primary: #2d7f4c;
    --primary-light: #45b072;
    --primary-dark: #1b4d2e;
    --accent: #f3c623;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --font: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
}

.admin-header {
    background: white;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.brand h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.1;
}

.brand span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-main {
    max-width: 1600px;
    width: 95%;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

.card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Auth Section styling */
.auth-section {
    max-width: 450px;
    margin: 4rem auto;
}

.auth-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Tabs Panel Navigation */
.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(45, 127, 76, 0.05);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(45, 127, 76, 0.08);
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Menu Tab Grid Layout */
.menu-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* General Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 127, 76, 0.1);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Button Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: #cbd5e1;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #94a3b8;
}

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

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

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Styled Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
}

.table th, .table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    background: #f8fafc;
}

.table tr:hover td {
    background: #f8fafc;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.badge-completed {
    background: #dcfce7;
    color: #15803d;
}

.badge-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-active {
    background: #dcfce7;
    color: #15803d;
}

.badge-inactive {
    background: #f1f5f9;
    color: #475569;
}

/* Error/Success Messages */
.error-msg {
    color: #ef4444;
    background: #fee2e2;
    border: 1px solid #fecaca;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Modals Dialog Styling */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

.close-btn:hover {
    color: black;
}

.order-modal-body h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
    color: var(--primary-dark);
}

.order-modal-body p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.order-items-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.4rem;
}

.order-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Toast Notifications Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100% - 40px);
}

/* Individual Toast Alert */
.toast {
    background: white;
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s ease forwards;
    transition: all 0.3s ease;
}

.toast.toast-success {
    border-left-color: var(--primary);
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast.toast-warning {
    border-left-color: #f59e0b;
}

.toast .toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    padding: 0;
}

.toast .toast-close:hover {
    color: var(--text-dark);
}

@keyframes toastSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Status-specific Select Colors */
.select-pending {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #f59e0b !important;
}

.select-completed {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #22c55e !important;
}

.select-cancelled {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #ef4444 !important;
}

.select-pending option,
.select-completed option,
.select-cancelled option {
    background-color: white !important;
    color: #1e293b !important;
}

@keyframes toastFadeOut {
    to {
        transform: translateY(-10px);
        opacity: 0;
    }
}

/* Password input wrapper styling */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 2.8rem;
}

.btn-toggle-password {
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-toggle-password:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1) !important;
}
