* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --accent-hover: #c73650;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --bg-card: #0f3460;
    --bg-dark: #0a0a1a;
    --success: #4ade80;
    --warning: #fbbf24;
    --info: #60a5fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* Global Scrollbar Styling */
/* For Webkit browsers (Chrome, Safari, Edge) */
* {
    scrollbar-width: thin;
    scrollbar-color: #1e3a8a transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #1e3a8a;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #1e40af;
}

*::-webkit-scrollbar-thumb:active {
    background-color: #1d4ed8;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1e3a8a transparent;
}

/* Advanced Navigation Bar */
.navbar {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: rotate(-10deg) scale(1.1);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after {
    width: 30px;
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.nav-link.primary {
    background: var(--accent);
    color: white;
    padding: 0.625rem 1.75rem;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    border: none;
}

.nav-link.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.nav-link.primary::after {
    display: none;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 4px;
}

.nav-toggle span:nth-child(1) {
    top: 8px;
}

.nav-toggle span:nth-child(2) {
    top: 15px;
}

.nav-toggle span:nth-child(3) {
    top: 22px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 15px;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 15px;
}

/* ================================
   AUTHENTICATION PAGES STYLES
   Used for: login.html, register.html
   ================================ */

/* Container */
.auth-container {
    width: 100%;
    max-width: 500px;
}

/* Card */
.auth-card {
    background: #162236;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid #1e3a5f;
}

/* Header Section */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-subtitle {
    color: #8b9bb3;
    font-size: 14px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-label {
    display: block;
    color: #8b9bb3;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: #1a2942;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #1e3550;
}

.form-input::placeholder {
    color: #4a5568;
}

.form-select option {
    background: #1a2942;
    color: #ffffff;
}

/* Buttons */
.auth-container .btn-primary {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer Section */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #1e3a5f;
}

.auth-footer-text {
    color: #8b9bb3;
    font-size: 14px;
}

.auth-footer-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-footer-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Forgot Password Link (Login page only) */
.forgot-password {
    text-align: right;
    margin-top: 8px;
}

.forgot-password a {
    color: #8b9bb3;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Dashboard Container */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 1rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--info));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(233, 69, 96, 0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--accent);
}

/* Main Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Invoices Content Grid */
.content-grid-invoices {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Tables */
/* Table Legend */
.table-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #1e3a5f;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #8b9bb3;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.available {
    background: #1a2942;
    border: 1px solid #1e3a5f;
}

.legend-color.occupied {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.legend-color.selected {
    background: #3b82f6;
    border: 1px solid #3b82f6;
}

/* Table buttons */
.table-btn.occupied {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    cursor: not-allowed;
}

.table-btn.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.table-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Special Instructions */
.special-instructions {
    margin-top: 1.5rem;
}

.form-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    background: #1a2942;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #1e3550;
}

.form-textarea::placeholder {
    color: #4a5568;
}

/* Payment Section */
.payment-section {
    margin-top: 1.5rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.payment-btn {
    padding: 12px;
    background: #1a2942;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #8b9bb3;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-btn:hover {
    background: #1e3550;
    border-color: #3b82f6;
    color: #ffffff;
}

.payment-btn.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.card {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.table th {
    text-align: left;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
    padding: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.status-badge.completed {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.status-badge.preparing {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
}

/* Quick Actions */
.quick-actions-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn-dashboard {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(233, 69, 96, 0.05) 100%);
    border: 1px solid rgba(233, 69, 96, 0.2);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-btn-dashboard:hover {
    background: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid-invoices {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
        padding: 1.5rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }
}

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

.stat-card {
    animation: fadeInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.card,
.card-invoices {
    animation: fadeInUp 0.6s ease backwards;
    animation-delay: 0.5s;
}

/* Footer Styles */
.footer {
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.5) 0%, rgba(10, 10, 26, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding: 3rem 0 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 0;
}

.footer-list a:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.footer-list a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-list a:hover::before {
    width: 4px;
    left: -6px;
}

/* System Status */
.system-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
    display: inline-block;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.status-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

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

.stat-card {
    animation: fadeInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Invoices */

.card-invoices {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

/* Inventory Container */
.inventory-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 1rem;
}


.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Stats Cards */
.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.stat-icon.total {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
}

.stat-icon.low {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.stat-icon.out {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.stat-icon.value {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Filters and Search */
.inventory-controls {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8b2d1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Inventory Table */
.inventory-table-container {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

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

.table th {
    background: rgba(10, 10, 26, 0.5);
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
    padding: 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.item-name {
    font-weight: 500;
    color: var(--text-primary);
}

.item-sku {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stock-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stock-fill.high {
    background: var(--success);
}

.stock-fill.medium {
    background: var(--warning);
}

.stock-fill.low {
    background: var(--danger);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-status.in-stock {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.stock-status.low-stock {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions a {
    text-decoration: none;
}

.action-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.action-btn.edit:hover {
    color: var(--info);
    border-color: var(--info);
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(10, 10, 26, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 4px;
}

.nav-toggle span:nth-child(1) {
    top: 8px;
}

.nav-toggle span:nth-child(2) {
    top: 15px;
}

.nav-toggle span:nth-child(3) {
    top: 22px;
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
        padding: 1.5rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .inventory-controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th, .table td {
        padding: 0.75rem 0.5rem;
    }

    .table-actions {
        flex-direction: column;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Menu Container */
.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Menu Controls */
.menu-controls {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8b2d1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 8px;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--accent);
    color: white;
}

/* Menu Grid View */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.menu-card {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(233, 69, 96, 0.3);
}

.menu-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.menu-item-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-card-body {
    padding: 1.25rem;
}

.menu-item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.menu-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.menu-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.menu-item-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.menu-card-footer {
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 26, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.recipes-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.menu-item-recipe {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.action-btn.edit:hover {
    color: var(--info);
    border-color: var(--info);
}

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

/* Table View */
.menu-table-container {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.menu-table-container.active {
    display: block;
}

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

.table th {
    background: rgba(10, 10, 26, 0.5);
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .navbar, .menu-controls, .header-actions, .card-actions, .action-btn, .page-header {
        display: none !important;
    }

    .menu-container {
        max-width: 100%;
        padding: 0;
    }

    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #333;
    }

    .print-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .print-header p {
        color: #666;
        font-size: 1rem;
    }

    .menu-grid {
        display: block;
    }

    .menu-card {
        background: white;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        transform: none !important;
    }

    .menu-item-name {
        color: #333;
    }

    .menu-item-description {
        color: #666;
    }

    .menu-item-price {
        color: #333;
    }

    .menu-card-footer {
        background: #f5f5f5;
        border-top: 1px solid #ddd;
    }

    .menu-categories {
        display: block !important;
        page-break-before: always;
    }

    .category-section {
        margin-bottom: 1rem;
    }

    .category-title {
        font-size: 1.75rem;
        color: #333;
        border-bottom: 2px solid #333;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
}

.print-header {
    display: none;
}

/* Mobile Responsive */
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 4px;
}

.nav-toggle span:nth-child(1) {
    top: 8px;
}

.nav-toggle span:nth-child(2) {
    top: 15px;
}

.nav-toggle span:nth-child(3) {
    top: 22px;
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        max-height: 400px;
        opacity: 1;
        padding: 1.5rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-controls {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }
}

/* Modal for Add/Edit Item */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary);
    border-radius: 16px;
    padding: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

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

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Container */
.invoice-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Page Header */
.page-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn-success:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Main Grid Layout */
.invoice-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Upload Section */
.upload-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed rgba(233, 69, 96, 0.3);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(10, 10, 26, 0.3);
}

.upload-area:hover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-text {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-input {
    display: none;
}

.supported-formats {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 8px;
}

.format-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.format-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* File Preview */
.file-preview {
    margin-top: 1.5rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.preview-card {
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-icon {
    font-size: 2rem;
}

.preview-info {
    flex: 1;
}

.preview-name {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.preview-size {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.preview-remove {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-remove:hover {
    background: var(--danger);
    color: white;
}

/* Invoice Form Section */
.invoice-form-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

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

/* Invoice Lines Section */
.invoice-lines-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.lines-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.lines-table {
    width: 100%;
    overflow-x: auto;
}

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

.table th {
    background: rgba(10, 10, 26, 0.5);
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.line-input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.line-input:focus {
    outline: none;
    border-color: var(--accent);
}

.line-select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.remove-line-btn {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-line-btn:hover {
    background: var(--danger);
    color: white;
}

.add-line-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-line-btn:hover {
    background: var(--info);
    color: white;
    transform: translateY(-2px);
}

/* Totals Section */
.totals-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.totals-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: end;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.total-row.grand-total {
    border-top: 2px solid var(--accent);
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.total-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.total-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
}

.grand-total .total-label,
.grand-total .total-value {
    color: var(--accent);
    font-size: 1.25rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* OCR Status */
.ocr-status {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ocr-icon {
    color: var(--warning);
    font-size: 1.5rem;
}

.ocr-text {
    flex: 1;
}

.ocr-title {
    color: var(--warning);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ocr-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Invoice Edit Modal Specific Styles */
#editInvoiceModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

#editInvoiceModal .modal-content {
    background-color: #0f1c2e;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid #1e3a5f;
}

#editInvoiceModal .modal-header {
    padding: 24px;
    border-bottom: 1px solid #1e3a5f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #162236;
    border-radius: 12px 12px 0 0;
}

#editInvoiceModal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

#editInvoiceModal .close {
    color: #6b7c93;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

#editInvoiceModal .close:hover,
#editInvoiceModal .close:focus {
    color: #ffffff;
}

#editInvoiceModal .modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

#editInvoiceModal .modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #1e3a5f;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #162236;
    border-radius: 0 0 12px 12px;
}

#editInvoiceModal .form-group {
    margin-bottom: 20px;
}

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

#editInvoiceModal .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    background-color: #1a2942;
    color: #ffffff;
}

#editInvoiceModal .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #1e3550;
}

#editInvoiceModal .form-control::placeholder {
    color: #4a5568;
}

#editInvoiceModal .form-control option {
    background-color: #1a2942;
    color: #ffffff;
}

#editInvoiceModal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: #8b9bb3;
    font-size: 14px;
}

#editInvoiceModal .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

#editInvoiceModal .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#editInvoiceModal .btn-primary {
    background-color: #3b82f6;
    color: white;
}

#editInvoiceModal .btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#editInvoiceModal .btn-secondary {
    background-color: #1e3a5f;
    color: #8b9bb3;
    border: 1px solid #2d4a6f;
}

#editInvoiceModal .btn-secondary:hover {
    background-color: #2d4a6f;
    color: #ffffff;
}

#editInvoiceModal small {
    display: block;
    margin-top: 6px;
    color: #6b7c93;
    font-size: 12px;
}

#editInvoiceModal #current-file-link {
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: color 0.2s;
}

#editInvoiceModal #current-file-link:hover {
    text-decoration: underline;
    color: #60a5fa;
}

#editInvoiceModal #current-file-display {
    padding: 12px;
    background-color: #1a2942;
    border-radius: 8px;
    border: 1px solid #1e3a5f;
}

/* Scrollbar styling for modal body */
#editInvoiceModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#editInvoiceModal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

#editInvoiceModal .modal-body::-webkit-scrollbar-thumb {
    background-color: #1e3a8a;
    border-radius: 4px;
}

#editInvoiceModal .modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #1e40af;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .invoice-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lines-table {
        overflow-x: scroll;
    }

    .table {
        min-width: 600px;
    }

    .action-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .action-buttons .btn {
        flex: 1;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.invoices-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.total::before {
    background: linear-gradient(90deg, var(--info), var(--accent));
}

.stat-card.pending::before {
    background: linear-gradient(90deg, var(--warning), #f59e0b);
}

.stat-card.paid::before {
    background: linear-gradient(90deg, var(--success), #22c55e);
}

.stat-card.overdue::before {
    background: linear-gradient(90deg, var(--danger), #dc2626);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-card.total .stat-icon {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
}

.stat-card.pending .stat-icon {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.stat-card.paid .stat-icon {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.stat-card.overdue .stat-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* Filters Section */
.filters-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8b2d1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.date-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-input {
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.date-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Invoices Table */
.invoices-table-container {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

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

.table th {
    background: rgba(10, 10, 26, 0.5);
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.invoice-number {
    font-weight: 600;
    color: var(--info);
    text-decoration: none;
}

.invoice-number:hover {
    color: var(--accent);
}

.supplier-name {
    font-weight: 500;
}

.supplier-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.amount {
    font-weight: 600;
    font-size: 1.125rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.approved {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.status-badge.paid {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-badge.overdue {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.cancelled {
    background: rgba(168, 178, 209, 0.2);
    color: var(--text-secondary);
    border: 1px solid rgba(168, 178, 209, 0.3);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.action-btn.view:hover {
    color: var(--info);
    border-color: var(--info);
}

.action-btn.edit:hover {
    color: var(--warning);
    border-color: var(--warning);
}

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

.action-btn.print:hover {
    color: var(--success);
    border-color: var(--success);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(10, 10, 26, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick Actions Float */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.quick-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 30px rgba(233, 69, 96, 0.5);
}

.quick-action-btn.secondary {
    background: var(--info);
    box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
}

.quick-action-btn.secondary:hover {
    box-shadow: 0 6px 30px rgba(96, 165, 250, 0.5);
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-section {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .date-range {
        width: 100%;
        flex-direction: column;
    }

    .date-input {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th, .table td {
        padding: 0.75rem 0.5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-actions {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeIn 0.5s ease backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.4s;
}

.invoices-table-container {
    animation: fadeIn 0.6s ease backwards;
    animation-delay: 0.5s;
}

/* Container */
.order-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.btn-success:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Main Layout Grid */
.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 450px;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Customer Details Section */
.customer-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 80vh;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(10, 10, 26, 0.5);
    padding: 0.25rem;
    border-radius: 8px;
}

.order-type-tab {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.order-type-tab.active {
    background: var(--accent);
    color: white;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.table-btn {
    padding: 1rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.table-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.table-btn.occupied {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.table-btn.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Menu Items Section */
.menu-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 80vh;
    overflow-x: auto;
}

.menu-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
}

.category-tab.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.menu-items-grid {
    display: grid;
    gap: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.menu-item {
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(233, 69, 96, 0.3);
}

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.menu-item-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.menu-item-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success);
}

.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 8px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

/* Order Summary Section */
.order-summary-section {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

.order-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.3);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.order-item-modifiers {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.order-item-quantity {
    color: var(--info);
    font-weight: 600;
    margin-right: 1rem;
}

.order-item-price {
    font-weight: 600;
    color: var(--text-primary);
}

.order-item-remove {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-item-remove:hover {
    background: var(--danger);
    color: white;
}

.order-totals {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.total-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.total-value {
    color: var(--text-primary);
    font-weight: 600;
}

.total-row.grand-total {
    border-top: 2px solid var(--accent);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.grand-total .total-label,
.grand-total .total-value {
    font-size: 1.25rem;
    color: var(--accent);
}

.special-instructions {
    margin-bottom: .5rem;
}

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

.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.payment-btn {
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.payment-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.payment-btn.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.invoice-container .action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-direction: row;
}

.action-btn.disabled {
    pointer-events: none;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Empty State */
.empty-order {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ORDER LIST + MODALS STYLES */
#closeOrderModal .receipt-container {
    max-height: 500px;
    overflow-y: auto;
}

/* Close Order Modal Styles */
#closeOrderModal .modal-content {
    max-width: 500px;
}

.order-summary-box {
    background: #0f1c2e;
    border: 1px solid #1e3a5f;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-summary-box h3 {
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #1e3a5f;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #3b82f6;
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-label {
    color: #8b9bb3;
    font-size: 0.875rem;
}

.summary-row.total-row .summary-label {
    color: #ffffff;
    font-size: 1.125rem;
}

.summary-value {
    color: #ffffff;
    font-weight: 600;
}

.summary-row.total-row .summary-value {
    color: #86efac;
    font-size: 1.25rem;
}

.payment-method-section {
    margin-top: 1.5rem;
}

.form-label {
    display: block;
    color: #8b9bb3;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #1a2942;
    border: 2px solid #1e3a5f;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    background: #1e3550;
    border-color: #3b82f6;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: #3b82f6;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: #3b82f6;
    font-weight: 600;
}

.payment-label {
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
}

.page-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.filters-section {
    background: #162236;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #1e3a5f;
}

.filters-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1a2942;
    border: 1px solid #1e3a5f;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-input::placeholder {
    color: #6b7c93;
}

.filter-select option {
    background: #1a2942;
}

.table-container {
    background: #162236;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e3a5f;
}

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

.table thead {
    background: #1a2942;
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #8b9bb3;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #1e3a5f;
}

.table td {
    padding: 1rem;
    color: #ffffff;
    border-bottom: 1px solid #1e3a5f;
}

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

.table tbody tr:hover {
    background: #1a2942;
}

.order-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.order-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-open {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-closed {
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.price-column {
    font-weight: 600;
    color: #86efac;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.action-btn:hover {
    transform: scale(1.2);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #162236;
    border-radius: 12px;
    border: 1px solid #1e3a5f;
}

.pagination-info {
    color: #8b9bb3;
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    background: #1a2942;
    border: 1px solid #1e3a5f;
    border-radius: 6px;
    color: #8b9bb3;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.page-btn:hover:not(:disabled) {
    background: #2d4a6f;
    color: #ffffff;
}

.page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .filters-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .filters-form {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }
}

/* Responsive */
@media screen and (max-width: 1400px) {
    .order-grid {
        grid-template-columns: 1fr 450px;
    }

    .customer-section {
        grid-column: span 2;
    }
}

@media screen and (max-width: 1024px) {
    .order-grid {
        grid-template-columns: 1fr;
    }

    .customer-section {
        grid-column: span 1;
    }

    .order-summary-section {
        position: relative;
        top: 0;
    }
}

@media screen and (max-width: 768px) {
    .order-container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customer-section,
.menu-section,
.order-summary-section {
    animation: fadeIn 0.5s ease backwards;
}

.customer-section {
    animation-delay: 0.1s;
}

.menu-section {
    animation-delay: 0.2s;
}

.order-summary-section {
    animation-delay: 0.3s;
}

/* Recipes Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.recipe-card {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(233, 69, 96, 0.3);
}

.recipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recipe-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.recipe-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-body {
    padding: 1.25rem;
}

.recipe-info-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.recipe-info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.recipe-ingredients {
    /*margin-top: 1rem;*/
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ingredients-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ingredient-tag {
    padding: 0.25rem 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.recipe-footer {
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 26, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recipe-cost {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cost-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cost-value {
    color: var(--success);
    font-weight: 700;
    font-size: 1.125rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Modal for Add/Edit Recipe */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

#recipeModal .modal-content {
    background: var(--secondary);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1rem;
}

.form-section {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

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

/* Ingredients Section */
.ingredients-section {
    background: rgba(10, 10, 26, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.ingredient-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ingredient-select {
    padding: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.ingredient-input {
    padding: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.remove-ingredient-btn {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.remove-ingredient-btn:hover {
    background: var(--danger);
    color: white;
}

.add-ingredient-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.add-ingredient-btn:hover {
    background: var(--info);
    color: white;
}

/* Cost Calculation */
.cost-calculation {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.cost-row.total {
    border-top: 1px solid rgba(74, 222, 128, 0.3);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--success);
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters-section {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .ingredient-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-content {
        margin: 1rem;
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.no-results p {
    font-size: 1.1rem;
}

/* Container */
.planner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Calendar Controls */
.calendar-controls {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.nav-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.current-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 200px;
    text-align: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 10, 26, 0.5);
    border-radius: 8px;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.view-btn.active {
    background: var(--accent);
    color: white;
}

/* Main Grid Layout */
.planner-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

/* Employee List */
.employee-list {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.employee-list-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.employee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.3);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.employee-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.employee-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.employee-info {
    flex: 1;
}

.employee-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.employee-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.employee-hours {
    text-align: right;
    font-size: 0.875rem;
    color: var(--info);
}

/* Schedule Grid */
.schedule-container {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 600px;
}

.schedule-grid.day-view {
    grid-template-columns: 100px 1fr;
}

.schedule-grid.month-view {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(5, minmax(120px, 1fr));
}

.day-column {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.day-column:last-child {
    border-right: none;
}

.day-header {
    background: rgba(10, 10, 26, 0.5);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.day-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.day-shifts {
    padding: 0.75rem;
    min-height: 500px;
    position: relative;
}

/* Shift Cards */
.shift-card {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-left: 3px solid var(--shift-server);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shift-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.shift-card.chef {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    border-left-color: var(--shift-chef);
}

.shift-card.bartender {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
    border-color: rgba(167, 139, 250, 0.3);
    border-left-color: var(--shift-bartender);
}

.shift-card.host {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.1) 100%);
    border-color: rgba(74, 222, 128, 0.3);
    border-left-color: var(--shift-host);
}

.shift-card.manager {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.2) 0%, rgba(233, 69, 96, 0.1) 100%);
    border-color: rgba(233, 69, 96, 0.3);
    border-left-color: var(--shift-manager);
}

.shift-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.shift-employee {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.shift-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Add Shift Button */
.add-shift-btn {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.add-shift-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Modal for Add/Edit Shift */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary);
    border-radius: 16px;
    padding: 1rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(10, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Legend */
.legend {
    background: rgba(15, 52, 96, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.legend-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .planner-grid {
        grid-template-columns: 1fr;
    }

    .employee-list {
        position: relative;
        top: 0;
    }
}

@media screen and (max-width: 768px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-controls {
        flex-direction: column;
    }

    .date-navigation {
        width: 100%;
        justify-content: center;
    }
}