
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3b5998;
    --primary-hover: #2d4373;
    --primary-glow: rgba(59, 89, 152, 0.2);
    
    --bg-gradient: #f4f6f9;
    --glass-bg: #ffffff;
    --glass-border: #e2e8f0;
    --glass-shadow: 0 4px 12px rgba(0,0,0,0.06);
    
    --surface-color: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #4a5568;
    --border-color: #e2e8f0;
    
    --success-color: #166534;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}




.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 50px 45px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.login-box:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.login-box h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-main);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 16px;
    font-weight: 400;
}

.login-form {
    margin-top: 20px;
}

.login-footer {
    margin-top: 35px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}


.dashboard-page {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.dashboard-header {
    background: var(--surface-color);
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}




.dashboard-main {
    flex: 1;
    padding: 40px 30px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}




.card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-main);
    font-weight: 600;
}


.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
    transform: translateY(-1px);
}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 89, 152, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: #ffffff;
    border-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}


.btn-block {
    display: block;
    width: 100%;
}


.message {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.message-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}


.menu-editor-container {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(8px);
}

.menu-order-group {
    margin-bottom: 20px;
}

.menu-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-order-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.menu-order-item-main {
    background: var(--surface-color);
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
}

.menu-order-item-sub {
    margin-left: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 2px solid var(--text-muted);
}

.menu-item-name {
    display: flex;
    align-items: center;
}

.menu-item-name i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 18px;
}

.menu-order-actions {
    display: flex;
    gap: 8px;
}

.btn-move {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-move:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-move:disabled {
    background: rgba(241, 245, 249, 0.5);
    color: #cbd5e1;
    border-color: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.table-responsive {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    text-align: left;
    font-size: 14px;
}

.db-table th {
    background-color: rgba(248, 250, 252, 0.8);
    color: var(--text-muted);
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.db-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    transition: var(--transition);
}

.db-table tbody tr {
    transition: var(--transition);
}

.db-table tbody tr:hover {
    background-color: rgba(241, 245, 249, 0.6);
}

.db-table tbody tr:last-child td {
    border-bottom: none;
}

.db-table code {
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--primary-color);
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 500;
}


.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 8px;
    }
    

    
    .header-actions .btn {
        width: 100%;
        padding: 8px 5px;
        font-size: 13px;
        justify-content: center;
    }
    
    
    .dashboard-main {
        padding: 20px 15px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    
    .menu-order-item {
        padding: 10px;
    }
    
    .menu-order-item-sub {
        margin-left: 15px; 
    }
    
    .menu-order-name {
        flex: 1; 
        padding-right: 10px;
        font-size: 14px;
        line-height: 1.4;
    }
    
    .menu-order-actions {
        flex-shrink: 0; 
        gap: 5px;
    }
    
    .btn-move {
        width: 32px;
        height: 32px;
    }
}

/* Utility Classes */
.mb-lg { margin-bottom: 2rem !important; }
.mb-md { margin-bottom: 1.5rem !important; }
.mb-sm { margin-bottom: 1rem !important; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.px-md { padding-left: 25px !important; padding-right: 25px !important; }
.py-md { padding-top: 25px !important; padding-bottom: 25px !important; }
.pt-md { padding-top: 25px !important; }
.pb-md { padding-bottom: 25px !important; }
.border-none { border: none !important; }
.shadow-none { box-shadow: none !important; }

.d-flex { display: flex !important; }
.justify-between { justify-content: space-between !important; }
.justify-end { justify-content: flex-end !important; }
.items-center { align-items: center !important; }
.gap-sm { gap: 10px !important; }

.mt-md { margin-top: 1.5rem !important; }

.form-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 25px 0 20px 0;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.text-md { font-size: 1.2rem !important; }
.text-center { text-align: center !important; }

.select-md {
    max-width: 300px;
}

.header-logo {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.header-logo i {
    margin-right: 8px;
}

/* Icon Badges */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 16px;
    flex-shrink: 0;
}
.icon-primary { background: rgba(59, 89, 152, 0.1); color: #3b5998; }
.icon-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-warning { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.icon-success { background: rgba(16, 185, 129, 0.1); color: #059669; }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #7c3aed; }

.sync-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 25px;
}

