/* --- 1. Font import (Cairo) --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/* --- 2. Root variables --- */
:root {
    /* Cofibit official palette for the cafe public site. */
    --primary-color: #422E59;    /* Cofibit deep purple */
    --primary-dark: #30213F;
    --primary-custom: #422E59;
    --secondary-color: #9D7DAE;  /* Sky Blue */
    --accent-color: #B6A7D2;     /* Violet */
    --bg-body: #F7F4F9;
    --bg-light: #F0EBF3;
    --text-main: #30243A;
    --text-muted: #786D80;
    --card-bg: #ffffff;
    --border-color: #D8CEE0;
    --gradient-main: linear-gradient(135deg, #422E59 0%, #634879 100%);
    --gradient-hero: linear-gradient(135deg, #422E59 0%, #52396A 100%);
    --invert-val: 0;
}

/* --- 3. Dark mode variables --- */
/* Enabled via body.dark-mode or Bootstrap data-bs-theme="dark" */
body.dark-mode, [data-bs-theme="dark"] {
    --primary-color: #C5AED6;
    --primary-dark: #B6A7D2;
    --primary-custom: #6366f1;
    --bg-body: #0f172a;
    --bg-light: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --invert-val: 1;
}

/* --- 4. Base styles --- */
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    scroll-behavior: smooth;
    text-align: right;
    direction: rtl;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    padding-top: 0;
    margin: 0;
}

/* Hide scrollbar while preserving scroll behavior */
html, body {
    margin: 0;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.bg-white {
    background: #FFFFFF !important;
}

/* --- 5. Hero section --- */
.hero-section {
    padding: 100px 0 60px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

/* --- 6. Floating actions --- */
.floating-actions {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 1000;
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.action-btn {
    cursor: pointer;
    background: var(--card-bg);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.action-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
}

.login-trigger {
    background: var(--gradient-main);
    color: white;
    border: none;
}

.login-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(66, 46, 89, 0.22);
}

/* --- 7. Cards styles --- */
.card, .register-card, .package-card, .accordion-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.register-card {
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    text-align: right;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

/* --- 8. Forms --- */
.form-control {
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
    transition: 0.3s;
    text-align: right;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(66, 46, 89, 0.10);
    background: var(--bg-body);
    color: var(--text-main);
    outline: none;
}

.btn-main {
    background: var(--gradient-main);
    color: white;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
}

.btn-main:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 10px 20px rgba(66, 46, 89, 0.18);
}
