/* ==========================================================================
   CAFÉ MANAGEMENT SYSTEM - MODERN SaaS STYLE (Moka/Olsera Style)
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; 
}

body { 
    background: var(--bg-body); 
    color: var(--text-main); 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
    font-size: 14px;
}

/* --- SIDEBAR STYLING --- */
.sidebar { 
    width: 270px; 
    background: var(--sidebar-bg); 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.sidebar-brand { 
    padding: 22px 20px; 
    font-size: 18px; 
    font-weight: 700; 
    background: #0f172a; 
    text-align: left; 
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #818cf8;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu { 
    list-style: none; 
    padding: 15px 12px; 
    overflow-y: auto; 
    flex: 1; 
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.sidebar-menu li { 
    margin-bottom: 4px; 
}

.sidebar-menu small {
    display: block;
    padding: 12px 15px 6px 15px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 700;
}

.sidebar-menu a { 
    color: var(--sidebar-text); 
    text-decoration: none; 
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px; 
    border-radius: var(--radius-sm); 
    transition: all 0.2s ease; 
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active { 
    background: var(--primary); 
    color: var(--sidebar-text-active); 
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* --- MAIN CONTENT & HEADER --- */
.main-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
    overflow: hidden; 
}

.top-header { 
    background: var(--bg-card); 
    padding: 16px 24px; 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.top-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.top-header span {
    font-size: 13px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.content-body { 
    padding: 24px; 
    overflow-y: auto; 
    flex: 1; 
    background: var(--bg-body); 
}

/* --- CARDS & CONTAINERS --- */
.card { 
    background: var(--bg-card); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    box-shadow: var(--shadow-md); 
    margin-bottom: 24px; 
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* --- TABLES STYLING --- */
table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0; 
    margin-top: 12px; 
}

table th, table td { 
    padding: 14px 16px; 
    border-bottom: 1px solid var(--border-color); 
    text-align: left; 
}

table th { 
    background: #f1f5f9; 
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table th:first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
table th:last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }

table tr:hover td {
    background: #fafafa;
}

/* --- BUTTONS STYLING --- */
.btn { 
    padding: 10px 18px; 
    border: none; 
    border-radius: var(--radius-sm); 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 13px;
    text-decoration: none; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease; 
    box-shadow: var(--shadow-sm);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary { 
    background: var(--primary); 
    color: #fff; 
}
.btn-primary:hover { 
    background: var(--primary-hover); 
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-success { 
    background: var(--success); 
    color: #fff; 
}
.btn-success:hover { 
    background: #059669; 
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

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

/* --- FORMS STYLING --- */
.form-group { 
    margin-bottom: 18px; 
}

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

.form-control { 
    width: 100%; 
    padding: 11px 14px; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    font-size: 14px;
    background: #fff;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); 
}