/* =========================
   🌞 ROOT VARIABLES
========================= */
:root {
    --main-color: #6366f1;
    --main-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);

    --bg-light: #f8fafc;
    --bg-soft: #eef2ff;
    --bg-card: #ffffff;

    --text-dark: #1e293b;
    --text-muted: #64748b;

    --border-color: #e2e8f0;
}

/* =========================
   🌍 GLOBAL
========================= */
body {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-soft));
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
}

* {
    transition: 0.2s ease;
}

::selection {
    background: var(--main-color);
    color: #fff;
}

img {
    transition: 0.3s;
}
img:hover {
    transform: scale(1.05);
}

/* =========================
   🧭 NAVBAR
========================= */
.custom-navbar {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--main-color) !important;
    font-weight: bold;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--main-color);
    bottom: -4px;
    left: 0;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================
   🔘 BUTTONS
========================= */
.btn-main {
    background: var(--main-gradient);
    color: #fff;
    border-radius: 12px;
    padding: 10px 18px;
    border: none;
}

.btn-main:hover {
    transform: scale(1.05);
}

.btn-soft {
    background: #eef2ff;
    color: var(--main-color);
    border-radius: 10px;
    padding: 8px 14px;
}

.btn-soft:hover {
    background: var(--main-color);
    color: #fff;
}

.btn-danger-soft {
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    padding: 8px 14px;
}

.btn-danger-soft:hover {
    background: #dc2626;
    color: #fff;
}

/* =========================
   🧱 CARDS (GENERIC)
========================= */
.card-ui {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.02);
}

/* =========================
   📦 FLEX ROW (SCROLL)
========================= */
.scroll-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.scroll-row::-webkit-scrollbar {
    height: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

/* =========================
   🪟 GLASS
========================= */
.glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =========================
   ✏️ TEXT
========================= */
.subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================
   🎛 FILTER BUTTONS (GENERIC)
========================= */
.chip {
    padding: 8px 15px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 14px;
}

.chip:hover {
    background: var(--main-color);
    color: #fff;
}

/* =========================
   🔔 TOAST
========================= */
.toast {
    background: #fff;
    color: var(--text-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* =========================
   ⏳ LOADER
========================= */
.loader {
    background: rgba(255,255,255,0.7);
}

/* =========================
   🔐 AUTH
========================= */
.auth-box {
    background: #fff;
    color: var(--text-dark);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.input-ui {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
}

/* =========================
   📱 RESPONSIVE
========================= */
@media(max-width: 768px){
    .scroll-row {
        padding-bottom: 10px;
    }
}