/* SalesDeck – Developer Studio Theme (P4) */

/* ─── Farbvariablen ─────────────────────────────────────── */
:root {
    --cyan:    #22d3ee;
    --indigo:  #6366f1;
    --purple:  #6366f1;
    --green:   #4ade80;
    --amber:   #f59e0b;
    --pink:    #f43f5e;
    --dark-bg: #0a0a0f;
}

/* ─── Glow-Klassen ───────────────────────────────────────── */
.glow-cyan   { box-shadow: 0 0 20px rgba(34, 211, 238, 0.35); }
.glow-indigo { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.glow-purple { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.glow-green  { box-shadow: 0 0 20px rgba(74, 222, 128, 0.35); }
.glow-pink   { box-shadow: 0 0 20px rgba(244, 63, 94, 0.4); }

/* ─── Navigations-Links ─────────────────────────────────── */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #71717a;
    transition: all 0.12s ease;
    text-decoration: none;
}
.nav-link:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: #e4e4e7;
}
.nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.nav-link svg { opacity: 0.75; }
.nav-link:hover svg, .nav-link.active svg { opacity: 1; }

/* ─── Karten ────────────────────────────────────────────── */
.card {
    background-color: #111118;
    border: 1px solid #1f1f2e;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s ease;
}
.card:hover { border-color: rgba(99, 102, 241, 0.15); }

.kpi-card {
    background-color: #111118;
    border: 1px solid #1f1f2e;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
    cursor: default;
}
.kpi-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-cyan {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: white; font-weight: 600; font-size: 0.8125rem;
    border-radius: 0.5rem; border: none; cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.btn-cyan:hover { opacity: 0.9; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }
.btn-cyan:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.4375rem 0.75rem; background: transparent;
    color: #71717a; font-weight: 500; font-size: 0.8125rem;
    border-radius: 0.5rem; border: 1px solid #1f1f2e; cursor: pointer;
    transition: all 0.12s ease; text-decoration: none;
}
.btn-ghost:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: #e4e4e7; border-color: rgba(99, 102, 241, 0.2);
}
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    background: rgba(244, 63, 94, 0.1); color: #f43f5e;
    font-weight: 600; font-size: 0.8125rem;
    border-radius: 0.5rem; border: 1px solid rgba(244, 63, 94, 0.25);
    cursor: pointer; transition: all 0.15s ease; text-decoration: none;
}
.btn-danger:hover { background: rgba(244, 63, 94, 0.2); box-shadow: 0 4px 14px rgba(244, 63, 94, 0.2); }

.btn-crawler-start {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
    width: 100%; min-height: 3.25rem; padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    color: #ffffff; font-weight: 700; font-size: 1rem; line-height: 1.25;
    border-radius: 0.625rem; border: none; cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}
.btn-crawler-start:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(99, 102, 241, 0.5); }
.btn-crawler-start:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-crawler-stop {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
    width: 100%; min-height: 3.25rem; padding: 0.875rem 1.5rem;
    background: rgba(244, 63, 94, 0.12); color: #f43f5e;
    font-weight: 700; font-size: 1rem; line-height: 1.25;
    border-radius: 0.625rem; border: 2px solid rgba(244, 63, 94, 0.4); cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.1);
}
.btn-crawler-stop:hover { background: rgba(244, 63, 94, 0.22); box-shadow: 0 6px 26px rgba(244, 63, 94, 0.2); transform: translateY(-1px); }
.btn-crawler-stop--compact { min-height: 2.5rem; padding: 0.4375rem 0.875rem; font-size: 0.8125rem; font-weight: 600; width: auto; border-width: 1px; box-shadow: 0 2px 12px rgba(244, 63, 94, 0.1); }
.btn-crawler-stop--compact:hover { transform: none; }

.btn-sm-cyan {
    display: inline-flex; align-items: center; padding: 0.25rem 0.5rem;
    background: rgba(34, 211, 238, 0.1); color: #22d3ee;
    font-size: 0.75rem; font-weight: 500; border-radius: 0.375rem;
    border: 1px solid rgba(34, 211, 238, 0.2); cursor: pointer;
    transition: all 0.15s ease; text-decoration: none;
}
.btn-sm-cyan:hover { background: rgba(34, 211, 238, 0.18); }

.btn-sm-ghost {
    display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem;
    background: transparent; color: #52525b; font-size: 0.75rem; font-weight: 500;
    border-radius: 0.375rem; border: 1px solid #1f1f2e; cursor: pointer;
    transition: all 0.15s ease; text-decoration: none;
}
.btn-sm-ghost:hover { background-color: rgba(99, 102, 241, 0.08); color: #a1a1aa; }

/* ─── Formular-Elemente ─────────────────────────────────── */
.form-input {
    background-color: #16161e; border: 1px solid #1f1f2e;
    border-radius: 0.5rem; padding: 0.4375rem 0.75rem;
    color: #f4f4f5; font-size: 0.875rem; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.form-input::placeholder { color: #3f3f46; }

.form-select {
    background-color: #16161e; border: 1px solid #1f1f2e;
    border-radius: 0.5rem; padding: 0.4375rem 0.75rem;
    color: #f4f4f5; font-size: 0.875rem; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color 0.15s ease; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2352525b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.625rem center;
    background-size: 1rem; padding-right: 2.25rem;
}
.form-select:focus { border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.form-select option { background-color: #16161e; color: #f4f4f5; }

.form-label {
    display: block; font-size: 0.75rem; font-weight: 500;
    color: #71717a; margin-bottom: 0.375rem;
    letter-spacing: 0.04em; text-transform: uppercase;
}

/* ─── Call Result Buttons ────────────────────────────────── */
.result-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.375rem;
    padding: 0.5rem 0.5rem; border-radius: 0.5rem; border: 1px solid;
    font-size: 0.8125rem; font-weight: 500; color: #a1a1aa;
    cursor: pointer; transition: all 0.12s ease; width: 100%;
}
.result-option input:checked + .result-btn {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
    background-color: rgba(99, 102, 241, 0.08); color: #a5b4fc;
}

/* ─── Animationen ───────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(99, 102, 241, 0.25); }
    50%       { box-shadow: 0 0 20px rgba(99, 102, 241, 0.55); }
}
.animate-fade-in-up    { animation: fadeInUp 0.22s ease forwards; }
.animate-pulse-glow    { animation: pulse-glow 2s ease-in-out infinite; }

/* ─── Tabellen-Hover ────────────────────────────────────── */
tbody tr { transition: background-color 0.08s ease; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #27273e; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.4); }

/* ─── Modal Backdrop ────────────────────────────────────── */
#callModal > div:first-child,
#pwdModal > div:first-child { animation: fadeInUp 0.15s ease; }

/* ─── Text Utilities ────────────────────────────────────── */
.text-cyan       { color: var(--cyan); }
.text-neon-green { color: var(--green); }
.text-neon-pink  { color: var(--pink); }
.text-amber      { color: var(--amber); }
.text-purple     { color: var(--indigo); }
.text-indigo     { color: var(--indigo); }

/* ─── Premium Crawler ────────────────────────────────────── */
.card-premium {
    background-color: #111118; border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem; padding: 1.25rem 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-premium:hover { border-color: rgba(99, 102, 241, 0.3); }
.automation-live-card--active {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.12);
}

/* ─── Status Pills ──────────────────────────────────────── */
.status-pill-running {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.625rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.4); color: #a5b4fc;
}
.status-pill-idle {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.625rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(63, 63, 70, 0.25); border: 1px solid rgba(63, 63, 70, 0.45); color: #52525b;
}
.mode-pill-automation {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.625rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.3); color: #22d3ee;
}
.mode-pill-manual {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.625rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3); color: #4ade80;
}
.mode-pill-nightly {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.625rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.3); color: #818cf8;
}
.mode-pill-idle {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.625rem; border-radius: 9999px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(63, 63, 70, 0.25); border: 1px solid rgba(63, 63, 70, 0.45); color: #52525b;
}

.kpi-glow-cyan   { color: #22d3ee !important; text-shadow: 0 0 12px rgba(34, 211, 238, 0.3); }
.kpi-glow-indigo { color: #818cf8 !important; text-shadow: 0 0 12px rgba(99, 102, 241, 0.3); }

/* ─── btn-primary alias ─────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    background: linear-gradient(135deg, #6366f1, #22d3ee); color: white;
    font-weight: 600; font-size: 0.8125rem; border-radius: 0.5rem; border: none; cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease; text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }

/* ─── Quality Badge ─────────────────────────────────────── */
.quality-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.7rem; font-weight: 600; padding: 0.15rem 0.4rem;
    border-radius: 0.3rem; border: 1px solid; font-family: 'JetBrains Mono', monospace;
}
.quality-badge-high { color: #4ade80; background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.25); }
.quality-badge-mid  { color: #f59e0b; background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); }
.quality-badge-low  { color: #52525b; background: rgba(63,63,70,0.2);   border-color: rgba(63,63,70,0.35); }

/* ─── Lead Indicators ───────────────────────────────────── */
.lead-indicator {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.125rem; height: 1.125rem; border-radius: 0.25rem;
    font-size: 0.6rem; font-weight: 700;
}
.indicator-phone { background: rgba(74,222,128,0.1);  color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.indicator-email { background: rgba(34,211,238,0.1);  color: #22d3ee; border: 1px solid rgba(34,211,238,0.2); }
.indicator-web   { background: rgba(99,102,241,0.1);  color: #818cf8; border: 1px solid rgba(99,102,241,0.2); }
.indicator-none  { background: rgba(63,63,70,0.15);   color: #3f3f46; border: 1px solid rgba(63,63,70,0.25); }

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 3rem 1.5rem; gap: 0.75rem;
    color: #52525b; text-align: center;
}
.empty-state-icon  { width: 3rem; height: 3rem; opacity: 0.2; }
.empty-state-title { font-size: 0.875rem; font-weight: 600; color: #71717a; }
.empty-state-body  { font-size: 0.8rem; max-width: 24rem; line-height: 1.6; }

/* ─── Completeness Bar ──────────────────────────────────── */
.completeness-bar { height: 2px; border-radius: 1px; background: #1f1f2e; overflow: hidden; width: 100%; }
.completeness-fill-high { height: 100%; background: #4ade80; }
.completeness-fill-mid  { height: 100%; background: #f59e0b; }
.completeness-fill-low  { height: 100%; background: #27273e; }

/* ─── Table ─────────────────────────────────────────────── */
.table-row-clickable { cursor: pointer; }
.table-row-clickable:hover td { background: rgba(17,17,24,0.8) !important; }

/* ─── Flash ─────────────────────────────────────────────── */
.flash-success { background: rgba(74,222,128,0.07); border: 1px solid rgba(74,222,128,0.25); color: #4ade80; }
.flash-error   { background: rgba(244,63,94,0.07);  border: 1px solid rgba(244,63,94,0.25);  color: #f43f5e; }
.flash-info    { background: rgba(34,211,238,0.07); border: 1px solid rgba(34,211,238,0.25); color: #22d3ee; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    aside { transform: translateX(-100%); transition: transform 0.22s ease; }
    aside.open { transform: translateX(0); }
    .ml-64 { margin-left: 0 !important; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE-ONLY STYLES  (max-width: 1023px)
   Alle Regeln in diesem Block betreffen ausschließlich Mobile.
   Desktop (≥ 1024px) bleibt vollständig unverändert.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {

    /* ─── Mobile Card List ───────────────────────────────────── */
    .m-card {
        background: #111118;
        border: 1px solid #1f1f2e;
        border-radius: 14px;
        padding: 1rem 1.125rem;
        transition: border-color 0.15s, background 0.15s;
        -webkit-tap-highlight-color: transparent;
        display: block;
        text-decoration: none;
    }
    .m-card:active {
        background: #16161e;
        border-color: rgba(99,102,241,0.2);
    }
    .m-card-title {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #f4f4f5;
        line-height: 1.3;
    }
    .m-card-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.4375rem;
    }
    .m-card-meta-item {
        font-size: 0.75rem;
        color: #71717a;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    /* ─── Mobile Action Row (horizontal scroll) ──────────────── */
    .m-action-row {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .m-action-row::-webkit-scrollbar { display: none; }
    .m-action-row .btn-cyan,
    .m-action-row .btn-ghost,
    .m-action-row .btn-danger {
        flex-shrink: 0;
        white-space: nowrap;
        min-height: 40px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* ─── Mobile Quick-Filter Pills ──────────────────────────── */
    .m-pill-scroll {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.125rem 0 0.375rem;
    }
    .m-pill-scroll::-webkit-scrollbar { display: none; }
    .m-pill {
        display: inline-flex;
        align-items: center;
        padding: 0.4375rem 0.9375rem;
        border-radius: 9999px;
        font-size: 0.8125rem;
        font-weight: 500;
        white-space: nowrap;
        border: 1px solid #27273e;
        color: #71717a;
        background: #111118;
        transition: all 0.12s;
        -webkit-tap-highlight-color: transparent;
        text-decoration: none;
    }
    .m-pill:active { background: #16161e; }
    .m-pill.active-cyan   { border-color: rgba(34,211,238,0.5);  color: #22d3ee;  background: rgba(34,211,238,0.08); }
    .m-pill.active-pink   { border-color: rgba(244,63,94,0.5);   color: #f43f5e;  background: rgba(244,63,94,0.08); }
    .m-pill.active-amber  { border-color: rgba(245,158,11,0.5);  color: #f59e0b;  background: rgba(245,158,11,0.08); }
    .m-pill.active-purple { border-color: rgba(99,102,241,0.5);  color: #818cf8;  background: rgba(99,102,241,0.08); }

    /* ─── Mobile Tel-Link (großes Touch-Target) ──────────────── */
    .m-tel-link {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #4ade80;
        padding: 0.4375rem 0.75rem;
        background: rgba(74,222,128,0.08);
        border: 1px solid rgba(74,222,128,0.2);
        border-radius: 8px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .m-tel-link:active { background: rgba(74,222,128,0.16); }

    /* ─── Admin-only Buttons auf Mobile ausblenden ───────────── */
    .mobile-hidden { display: none !important; }

}
