/* ================================================================
   DUA2 — AI Tools Stijlen
   Thema: Modern Cyber/Ecosysteem • Paars/Cyaan/Smaragd Accenten • Glassmorphism
   ================================================================ */

:root {
    --ai-purple:     #a855f7;
    --ai-purple-lt:  #c084fc;
    --ai-purple-glow: rgba(168, 85, 247, 0.4);
    --ai-cyan:       #06b6d4;
    --ai-cyan-glow:  rgba(6, 182, 212, 0.35);
    --ai-card-bg:    rgba(15, 23, 42, 0.75);
    --ai-border:     rgba(255, 255, 255, 0.1);
    --ai-border-hover: rgba(192, 132, 252, 0.5);
}

body.ai-tools-body {
    background: radial-gradient(circle at 50% 0%, #150d30 0%, #030712 60%, #020612 100%);
    min-height: 100vh;
    color: #f8fafc;
    overflow-x: hidden;
}

/* ── ACHTERGROND SFEER ────────────────────────────────────────── */
.ai-background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle 600px at 20% 15%, rgba(168, 85, 247, 0.12), transparent 70%),
        radial-gradient(circle 500px at 80% 25%, rgba(6, 182, 212, 0.1), transparent 60%),
        radial-gradient(circle 700px at 50% 90%, rgba(34, 197, 94, 0.06), transparent 70%);
}

.ai-main-container {
    position: relative;
    z-index: 10;
    max-width: 1360px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 6rem;
    min-height: calc(100vh - 120px);
}

/* ── AUTH HEADER ELEMENTEN ────────────────────────────────────── */
.nav-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    color: #e2e8f0;
}

.nav-user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.24);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* ── 1. LOGINSCHERM (Gated Auth View) ─────────────────────────── */
.login-view-wrapper {
    position: relative;
    z-index: 20;
    min-height: calc(100vh - var(--nav-h) - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(13, 20, 38, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 20px;
    padding: 1.75rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(168, 85, 247, 0.15);
    animation: loginFadeIn 0.5s var(--ease);
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.login-mascot-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, var(--ai-purple), var(--ai-cyan));
    box-shadow: 0 0 20px var(--ai-purple-glow);
}

.login-mascot-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #020612;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease);
}

.form-input.no-icon {
    padding-left: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--ai-purple-lt);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
    background: rgba(22, 30, 54, 0.95);
}

.btn-toggle-pw {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pw:hover {
    color: #f8fafc;
}

/* Remember me vinkje */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -0.25rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.checkbox-custom {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s var(--ease);
}

.checkbox-custom:checked {
    background: var(--ai-purple);
    border-color: var(--ai-purple);
    box-shadow: 0 0 8px var(--ai-purple-glow);
}

.checkbox-custom:checked::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.btn-login-submit {
    width: 100%;
    padding: 0.88rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
    transition: all 0.25s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, #b86bfc, #4f46e5);
}

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

.login-quick-fill {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-quick-fill {
    background: transparent;
    border: none;
    color: var(--ai-cyan);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.85;
}

.btn-quick-fill:hover {
    opacity: 1;
}

.auth-error-banner {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    align-items: center;
    gap: 8px;
}

.auth-error-banner.show {
    display: flex;
}

/* ── 2. DASHBOARD VIEW (Na Inloggen) ───────────────────────────── */
.dashboard-view {
    display: none;
    animation: dashFadeIn 0.4s var(--ease);
}

.dashboard-view.active {
    display: block;
}

@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.ai-hero-header {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.35);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    width: fit-content;
    font-size: 0.82rem;
    font-weight: 700;
    color: #c084fc;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ai-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 10px #c084fc;
    animation: aiDotPulse 2s infinite ease-in-out;
}

.ai-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.ai-main-title {
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.15;
}

.ai-title-gradient {
    background: linear-gradient(135deg, #c084fc 0%, #38bdf8 50%, #4ade80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 720px;
    line-height: 1.6;
}

.ai-stats-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.stat-lbl {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
}

/* ── 3. ZOEKBALK (Boven de categorieën) ───────────────────────── */
.search-container {
    margin-bottom: 2rem;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon-svg {
    position: absolute;
    left: 18px;
    width: 22px;
    height: 22px;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s var(--ease);
}

.main-search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.1rem 3.5rem 1.1rem 3.25rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-family: inherit;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    transition: all 0.3s var(--ease);
}

.main-search-input:focus {
    outline: none;
    border-color: var(--ai-purple);
    box-shadow: 0 10px 35px rgba(168, 85, 247, 0.25), 0 0 0 3px rgba(168, 85, 247, 0.15);
    background: rgba(20, 29, 52, 0.95);
}

.main-search-input:focus + .search-icon-svg {
    color: var(--ai-purple-lt);
}

.search-clear-btn {
    position: absolute;
    right: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.search-clear-btn.visible {
    display: flex;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.search-feedback-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.65rem;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ── 4. VIERKANTE CATEGORIE KNOPPEN (Boven de lijst) ──────────── */
.categories-section {
    margin-bottom: 2.75rem;
}

.section-label-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid met VIERKANTE knoppen */
.square-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .square-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
        gap: 0.75rem;
    }
}

.category-square-btn {
    aspect-ratio: 1 / 1;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.45rem;
    transition: all 0.28s var(--bounce);
    position: relative;
    overflow: hidden;
    color: #cbd5e1;
    font-family: inherit;
}

.category-square-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.category-square-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(192, 132, 252, 0.4);
    background: rgba(24, 34, 60, 0.85);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(168, 85, 247, 0.2);
}

.category-square-btn:hover::before {
    opacity: 1;
}

/* Actieve vierkante knop */
.category-square-btn.active {
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 42, 0.95));
    border-color: var(--ai-purple-lt);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35), 0 0 0 2px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.cat-square-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.25s var(--bounce);
}

.category-square-btn:hover .cat-square-icon,
.category-square-btn.active .cat-square-icon {
    transform: scale(1.15);
}

.cat-square-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 100%;
    word-break: break-word;
}

.cat-square-count {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-square-btn.active .cat-square-count {
    background: var(--ai-purple);
    color: #ffffff;
    box-shadow: 0 0 8px var(--ai-purple-glow);
}

/* ── 5. AI TOOLS LIJST / GRID ─────────────────────────────────── */
.tools-section {
    position: relative;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ai-purple), var(--ai-cyan));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--ai-border-hover);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 25px rgba(168, 85, 247, 0.2);
}

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

.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.tool-badge-category {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #d8b4fe;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tool-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.btn-icon-action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-icon-action.delete:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.tool-card-header {
    margin-bottom: 0.75rem;
}

.tool-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-url-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ai-cyan);
    font-size: 0.82rem;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.85;
    transition: opacity 0.2s var(--ease);
    word-break: break-all;
}

.tool-url-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.tool-short-info {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Accordion of preview van Long info & Review */
.tool-details-box {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.detail-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-text {
    color: #e2e8f0;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.detail-text:last-child {
    margin-bottom: 0;
}

.review-box {
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid var(--ai-purple-lt);
    padding: 0.6rem 0.8rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #e2e8f0;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 0.75rem;
}

.btn-visit-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s var(--ease);
    flex-grow: 1;
}

.btn-visit-site:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(168, 85, 247, 0.4));
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-view-details:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* Lege toestand (Geen resultaten) */
.empty-tools-state {
    display: none;
    text-align: center;
    padding: 5rem 1.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 24px;
}

.empty-tools-state.visible {
    display: block;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.empty-desc {
    color: #94a3b8;
    max-width: 440px;
    margin: 0 auto 1.5rem;
}

/* ── 6. RECHTSONDER FLOATING ACTION BUTTON (+) ─────────────────── */
.fab-add-tool {
    position: fixed;
    bottom: 2.25rem;
    right: 2.25rem;
    z-index: 90;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5), 0 0 25px rgba(56, 189, 248, 0.4);
    transition: all 0.3s var(--bounce);
    outline: none;
}

.fab-add-tool::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    z-index: -1;
    opacity: 0.5;
    animation: fabPulse 2.5s infinite;
}

@keyframes fabPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.18); opacity: 0.1; }
}

.fab-add-tool:hover {
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 14px 40px rgba(168, 85, 247, 0.7), 0 0 35px rgba(56, 189, 248, 0.6);
}

.fab-icon-svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.75;
}

.fab-tooltip {
    position: absolute;
    right: 78px;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.25s var(--ease);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.fab-add-tool:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ── 7. MODALS (Aanmaken & Details) ────────────────────────────── */
.modal-backdrop-ai {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 18, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: modalBgFadeIn 0.3s var(--ease);
}

.modal-backdrop-ai.active {
    display: flex;
}

@keyframes modalBgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-container-ai {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.96);
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(168, 85, 247, 0.2);
    position: relative;
    animation: modalSlideUp 0.35s var(--bounce);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-title-ai {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-ai {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
}

.modal-close-ai:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.modal-footer-ai {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-modal-submit {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
    transition: all 0.25s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-submit:hover {
    background: linear-gradient(135deg, #b86bfc, #4f46e5);
    box-shadow: 0 10px 28px rgba(168, 85, 247, 0.55);
    transform: translateY(-1px);
}

/* ── 8. TOAST NOTIFICATIES ────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.3);
    color: #ffffff;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.3s var(--bounce);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.3);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.3);
}
