/* EkmekTeknesi - B2B Sipariş Portalı CSS Tasarımı */

:root {
    /* Harmony Color Palette: Warm Wheat and Deep Slate */
    --primary-hsl: 35, 92%, 53%;
    --primary: hsl(var(--primary-hsl));
    --primary-hover: hsl(35, 92%, 43%);
    --primary-light: hsl(35, 92%, 95%);
    --bg-warm-hsl: 35, 30%, 98%;
    --bg-warm: hsl(var(--bg-warm-hsl));
    --bg-card: #ffffff;
    
    --text-main: hsl(215, 25%, 15%);
    --text-muted: hsl(215, 16%, 47%);
    --border-color: hsl(215, 20%, 92%);
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #ecfdf5;
    --info: #3b82f6;
    --info-light: #eff6ff;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;
    
    /* Modern UI Tokens */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 2px 8px rgba(35, 31, 28, 0.03);
    --shadow-md: 0 8px 30px rgba(35, 31, 28, 0.05);
    --shadow-lg: 0 16px 48px rgba(35, 31, 28, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Core Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-warm);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-hover);
}

/* App View Containers */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.view {
    display: none;
    flex: 1;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: flex;
    flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ==================== LOGIN SCREEN ==================== */
#login-view {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, hsl(35, 40%, 96%) 0%, hsl(35, 20%, 92%) 100%);
    padding: 20px;
}

.login-card-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    transition: var(--transition-smooth);
}

.login-brand {
    margin-bottom: 30px;
}

.brand-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
    margin-bottom: 16px;
}

.login-brand h1 {
    font-size: 28px;
    color: var(--text-main);
}

.login-brand h1 span {
    color: var(--primary);
}

.login-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.login-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.login-tab.active {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.login-form {
    display: none;
    text-align: left;
}

.login-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group label i {
    color: var(--primary);
    margin-right: 4px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-main);
    background-color: white;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .col {
    flex: 1;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-light {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

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

.btn-block {
    width: 100%;
    padding: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-icon-logout {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--danger);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-icon-logout:hover {
    background: var(--danger-light);
    transform: scale(1.1);
}

/* ==================== HEADERS ==================== */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo i {
    font-size: 24px;
    color: var(--primary);
}

.header-logo span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-user span {
    font-weight: 600;
    font-size: 15px;
}

.header-user span i {
    color: var(--primary);
}

/* ==================== CUSTOMER DASHBOARD ==================== */
.dashboard-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 40px 100px 40px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.banner-text h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.banner-text p {
    color: #94a3b8;
    font-size: 15px;
}

.quick-repeat-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: pulse-slow 3s infinite ease-in-out;
}

.quick-repeat-box span {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 700;
}

.section-title h3 i {
    color: var(--primary);
    margin-right: 6px;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Product Catalog Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 158, 11, 0.3);
}

.product-image-placeholder {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    margin-bottom: 16px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.product-info h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    flex: 1;
}

.product-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.product-price span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Quantity Selector Widget */
.qty-selector {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    border: none;
    background: transparent;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.btn-add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
    transition: var(--transition-smooth);
}

.btn-add-to-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Order History List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.order-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.order-id-date h5 {
    font-size: 14px;
    font-weight: 700;
}

.order-id-date span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending { background-color: var(--warning-light); color: var(--warning); }
.status-badge.approved { background-color: var(--info-light); color: var(--info); }
.status-badge.in_transit { background-color: var(--purple-light); color: var(--purple); }
.status-badge.delivered { background-color: var(--success-light); color: var(--success); }
.status-badge.cancelled { background-color: var(--danger-light); color: var(--danger); }

.order-card-body {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.order-card-footer span {
    color: var(--text-muted);
    font-weight: 500;
}

/* Floating Cart Bar */
.floating-cart-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 40px);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-bar.active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-bar-info i {
    color: var(--primary);
    font-size: 20px;
}

.cart-bar-info span {
    font-weight: 700;
    font-size: 16px;
}

.btn-cart-trigger {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    transition: var(--transition-smooth);
}

.btn-cart-trigger:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* ==================== ADMIN DASHBOARD ==================== */
.admin-header {
    background-color: #0f172a;
    color: white;
    border-bottom: 2px solid var(--primary);
}

.admin-header .header-logo span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-header .header-logo span span {
    background-color: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.admin-nav-tabs {
    display: flex;
    background-color: #1e293b;
    padding: 0 40px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab i {
    font-size: 16px;
}

.admin-tab.active, .admin-tab:hover {
    color: white;
    border-bottom-color: var(--primary);
}

.admin-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 40px;
    flex: 1;
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.content-header h3 {
    font-size: 22px;
    font-weight: 800;
}

/* Premium Data Table styling */
.table-wrapper, .orders-table-wrapper {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.premium-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: var(--text-main);
    padding: 14px 20px;
    border-bottom: 2px solid var(--border-color);
}

.premium-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.premium-table tr:last-child td {
    border-bottom: none;
}

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

/* Table Quick Action Buttons */
.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-action.btn-approve { background-color: var(--success-light); color: var(--success); }
.btn-action.btn-approve:hover { background-color: var(--success); color: white; }
.btn-action.btn-ship { background-color: var(--purple-light); color: var(--purple); }
.btn-action.btn-ship:hover { background-color: var(--purple); color: white; }
.btn-action.btn-deliver { background-color: var(--info-light); color: var(--info); }
.btn-action.btn-deliver:hover { background-color: var(--info); color: white; }
.btn-action.btn-cancel { background-color: var(--danger-light); color: var(--danger); }
.btn-action.btn-cancel:hover { background-color: var(--danger); color: white; }

.btn-action-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-action-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action-outline.text-danger:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Tab 2: Baking List panel styles */
.baking-panel-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.baking-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.baking-card-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.baking-card-header h4 {
    font-size: 16px;
    font-weight: 700;
}

.baking-list-output {
    padding: 20px;
}

.baking-table {
    width: 100%;
    border-collapse: collapse;
}

.baking-table th {
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1.5px solid var(--border-color);
    font-size: 13px;
}

.baking-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 500;
}

.baking-table tr:last-child td {
    border-bottom: none;
}

.baking-count {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.baking-instructions {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.baking-instructions h5 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.baking-instructions p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tip-box {
    background-color: var(--primary-light);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
}

.tip-box i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
}

.date-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-selector-wrapper label {
    font-weight: 700;
    font-size: 14px;
}

.date-selector-wrapper input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    font-family: var(--font-sans);
    outline: none;
}

/* System Settings styling */
.settings-form-wrapper {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 30px;
    max-width: 700px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.settings-section-title i {
    color: var(--primary);
    margin-right: 6px;
}

.form-group small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.4);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.modal-header h3 i {
    color: var(--primary);
    margin-right: 6px;
}

.modal-close {
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Cart Specific Styles */
.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 240px;
    overflow-y: auto;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h5 {
    font-size: 14px;
    font-weight: 700;
}

.cart-item-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 14px;
}

.cart-form {
    background-color: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.total-row.discount {
    color: var(--danger);
}

.total-row.final {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    border-top: 2px solid var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
}

/* Toast System styling */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    min-width: 280px;
    max-width: 400px;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast i {
    font-size: 18px;
}
.toast.success i { color: var(--success); }
.toast.danger i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .dashboard-grid, .baking-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 16px 20px;
    }
    .dashboard-content, .admin-content {
        padding: 20px 16px 100px 16px;
    }
    .admin-nav-tabs {
        overflow-x: auto;
        padding: 0 10px;
    }
    .admin-tab {
        padding: 12px 10px;
        font-size: 13px;
        white-space: nowrap;
    }
    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .quick-repeat-box {
        width: 100%;
    }
    .floating-cart-bar {
        width: calc(100% - 32px);
        padding: 12px 20px;
        gap: 16px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    body * {
        visibility: hidden;
    }
    #tab-baking, #tab-baking * {
        visibility: visible;
    }
    #tab-baking {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .admin-header, .admin-nav-tabs, .btn, .tip-box, .baking-instructions {
        display: none !important;
    }
    .baking-card {
        box-shadow: none !important;
        border: none !important;
    }
}

/* Legal Notice Footer Links */
.login-footer {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}
.login-footer a {
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition-smooth);
}
.login-footer a:hover {
    color: var(--primary);
}
