/* ============================================================
   MalwareGo — brand overrides on top of the AutomateX theme.
   Reassuring blue palette + custom components.
   ============================================================ */

:root, :host {
    /* Rebrand the theme accent (purple) to MalwareGo blue */
    --color-primary-7: #1d6ef5;   /* main accent */
    --color-primary-2: #4f8df9;   /* gradient partner */
    --color-primary-1: #0b3b8f;   /* deep blue */
    --color-primary-3: #1d6ef5;
    /* purple utilities used by theme forms/buttons → blue */
    --color-purple-200: #c7dbfc;
    --color-purple-500: #1d6ef5;
    --color-purple-600: #1558cc;
    --color-purple-700: #0f46a6;
    --color-purple-900: #0b3b8f;
    --color-fuchsia-300: #9cc1fa;
    --color-fuchsia-500: #4f8df9;
    --color-indigo-500: #2f7cf6;
    --color-indigo-800: #0b3b8f;

    --mg-blue: #1d6ef5;
    --mg-blue-dark: #0b3b8f;
    --mg-blue-deep: #06224f;
    --mg-blue-soft: #eaf1fe;
    --mg-green: #16a34a;
    --mg-red: #dc2626;
    --mg-amber: #f59e0b;
}

/* ---- Gradients / backgrounds ---- */
.mg-grad-blue {
    background: linear-gradient(135deg, #0b3b8f 0%, #1d6ef5 55%, #4f8df9 100%);
}
.mg-grad-hero {
    background: radial-gradient(1200px 500px at 50% -10%, rgba(29,110,245,.14), transparent 60%),
                radial-gradient(800px 400px at 85% 10%, rgba(79,141,249,.10), transparent 60%);
}
.mg-footer-bg {
    background: linear-gradient(to bottom, #020814 0%, #06224f 55%, #0b3b8f 100%);
}
.mg-shadow-blue { box-shadow: 0 4px 15px rgba(29, 110, 245, .4); }

/* ---- Badges ---- */
.mg-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .18rem .62rem; border-radius: 999px;
    font-size: .74rem; font-weight: 700; white-space: nowrap;
}
.mg-badge-gray   { background: #e5e7eb; color: #374151; }
.mg-badge-blue   { background: var(--mg-blue-soft); color: #1558cc; }
.mg-badge-amber  { background: #fef3c7; color: #92400e; }
.mg-badge-green  { background: #dcfce7; color: #166534; }
.mg-badge-red    { background: #fee2e2; color: #991b1b; }
.mg-badge-purple { background: #ede9fe; color: #5b21b6; }

/* ---- Buttons ---- */
.mg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: .75rem; font-weight: 700; font-size: 1rem;
    transition: all .2s ease; cursor: pointer; border: 0; text-decoration: none;
}
.mg-btn-primary { background: var(--mg-blue); color: #fff; box-shadow: 0 6px 18px rgba(29,110,245,.35); }
.mg-btn-primary:hover { background: #1558cc; transform: translateY(-1px); }
.mg-btn-dark { background: #0a0a0a; color: #fff; }
.mg-btn-dark:hover { background: #262626; }
.mg-btn-outline { background: #fff; color: var(--mg-blue-dark); border: 1.5px solid #c7dbfc; }
.mg-btn-outline:hover { border-color: var(--mg-blue); color: var(--mg-blue); }
.mg-btn-lg { padding: 1rem 2.2rem; font-size: 1.07rem; }
.mg-btn[disabled] { opacity: .55; pointer-events: none; }

/* ---- Cards / inputs ---- */
.mg-card {
    background: #fff; border: 1px solid #e5eaf2; border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(13, 38, 76, .05);
}
.mg-input {
    width: 100%; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: .75rem;
    padding: .85rem 1rem; font-size: 1rem; color: #0f172a;
}
.mg-input:focus { outline: none; border-color: var(--mg-blue); box-shadow: 0 0 0 3px rgba(29,110,245,.15); }
label.mg-label { display:block; font-size: .9rem; font-weight: 600; color: #334155; margin-bottom: .4rem; }

/* ---- Dropzone ---- */
.mg-dropzone {
    border: 2px dashed #b9d2fb; border-radius: 1.25rem; background: #f6faff;
    padding: 2.6rem 1.5rem; text-align: center; cursor: pointer;
    transition: all .2s ease;
}
.mg-dropzone:hover, .mg-dropzone.dragover {
    border-color: var(--mg-blue); background: var(--mg-blue-soft);
}
.mg-dropzone .mg-dz-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 1rem;
    background: var(--mg-blue); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(29,110,245,.35);
}

/* ---- Progress bar ---- */
.mg-progress { width: 100%; height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.mg-progress > div {
    height: 100%; border-radius: 999px; width: 0;
    background: linear-gradient(90deg, #1d6ef5, #4f8df9);
    transition: width .6s ease;
}
.mg-progress.mg-indeterminate > div {
    width: 35%; animation: mg-slide 1.4s ease-in-out infinite;
}
@keyframes mg-slide {
    0% { margin-left: -35%; } 100% { margin-left: 100%; }
}

/* ---- Stat tiles (preview) ---- */
.mg-stat { background:#fff; border:1px solid #e5eaf2; border-radius:1rem; padding:1.1rem 1.25rem; text-align:center; }
.mg-stat .v { font-size: 1.7rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.mg-stat .l { font-size: .8rem; font-weight: 600; color: #64748b; margin-top:.15rem; }
.mg-stat.crit .v { color: var(--mg-red); }
.mg-stat.high .v { color: #ea580c; }
.mg-stat.med  .v { color: var(--mg-amber); }

/* ---- Tables ---- */
.mg-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mg-table th {
    text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
    color: #64748b; padding: .7rem .9rem; border-bottom: 1px solid #e5eaf2; white-space: nowrap;
}
.mg-table td { padding: .8rem .9rem; border-bottom: 1px solid #eef2f7; color: #1e293b; vertical-align: middle; }
.mg-table tr:last-child td { border-bottom: 0; }
.mg-table tr:hover td { background: #f8fafc; }
.mg-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; word-break: break-all; }

/* ---- Flash messages ---- */
.mg-flash { border-radius: .8rem; padding: .9rem 1.2rem; font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.mg-flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.mg-flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.mg-flash-info    { background: var(--mg-blue-soft); color: #1558cc; border: 1px solid #c7dbfc; }

/* ---- Pricing blur-lock (preview teaser) ---- */
.mg-locked { filter: blur(5px); user-select: none; pointer-events: none; }

/* ---- Misc ---- */
.mg-step-num {
    width: 46px; height: 46px; border-radius: 50%; display:flex; align-items:center; justify-content:center;
    background: var(--mg-blue); color:#fff; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(29,110,245,.35);
}
.mg-check { color: var(--mg-green); }
.mg-divider { height:1px; background:#e5eaf2; }
.mg-prose p { margin-bottom: .9rem; color:#334155; line-height:1.7; }
.mg-prose h2 { font-size:1.3rem; font-weight:700; margin:1.6rem 0 .6rem; }
