@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
/* Design System – default to dark theme */
:root {
    --bg: #0b0f15;
    --surface: #101826;
    --surface-2: #0f1725;
    --text: #e8ecf4;
    --muted: #a0acbd;
    --border: #1f2937;
    --border-strong: #2b3648;

    --brand: #ff8a05;
    --brand-600: #fb7a00;
    --brand-700: #ed6e00;

    --purple-600: #7c3aed;
    --purple-400: #a78bfa;

    --success: #10b981;
    --danger: #ef4444;
    --warn: #f59e0b;

    --radius: 14px;
    --radius-lg: 16px;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 8px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --text: #0f172a;
    --muted: #667084;
    --border: #e6e9f0;
    --border-strong: #d7dbe5;

    --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
    --shadow-2: 0 14px 50px rgba(16, 24, 40, 0.10);
}


/* Base */
html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 20px;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(130%) blur(8px);
}

.app-header__inner {
    height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 34px;
    width: auto;
}

.brand-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--muted);
    letter-spacing: 0.2px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all .2s ease;
}

.icon-btn:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-1);
}

.icon-btn:active {
    transform: translateY(0);
}

.header-search {
    min-width: 260px;
}

.search-input {
    position: relative;
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-input .form-control {
    padding-left: 40px;
    height: 44px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}

.search-input .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 138, 5, 0.15);
    border-color: var(--brand);
}

nav a {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease-in-out, scale 0.2s ease-in-out;
    margin-left: 5%;
}

nav a:hover {
    color: var(--text);
    scale: 1.04;
}

/* Alerts */
.app-alert {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.08), rgba(255, 193, 7, 0.02));
    color: var(--text);
    border-radius: var(--radius);
}

/* Titles */
.page-title {
    font-weight: 700;
    letter-spacing: 0.2px;
    width: 40%;
}

/* Cards / Panels */
.tool-card,
.panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 18px;
    transition: all .2s ease;
}

.tool-card:hover,
.panel:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
}

.badge-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    max-width: 15%;
    max-height: 30%;
    border-radius: 0px;
    background: transparent;
    display: grid;
    place-items: center;
    overflow: visible;
    scale: 1.2;
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-subtle {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 12px;
}

/* Buttons */
.btn-primary,
.btn-success {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 138, 5, 0.25);
}

.btn-primary:hover,
.btn-success:hover {
    background-color: var(--brand-600) !important;
    border-color: var(--brand-600) !important;
}

.btn-outline-primary {
    border-color: rgba(255, 138, 5, 0.55) !important;
    color: var(--brand) !important;
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background: rgba(255, 138, 5, 0.1) !important;
    border-color: var(--brand) !important;
    color: var(--brand) !important;
}

.btn-outline-secondary,
.btn-secondary {
    border-color: var(--border) !important;
    color: var(--text) !important;
    background: transparent !important;
    border-radius: 12px;
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.12) !important;
    border-color: var(--border-strong) !important;
}

.btn-danger {
    border-radius: 12px;
}

.btn-outline-warning {
    border-radius: 12px;
    background: transparent !important;
    border-color: #f5be0b !important;
    color: #f5be0b !important;
}
.btn-outline-warning:hover {
    background: #f5be0b25 !important;
    border-color: #da8d09 !important;
}

/* Dropdowns */
.dropdown-menu.app-menu,
.dropdown-menu {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover {
    background: rgba(148, 163, 184, 0.1);
}

/* Forms */
.form-label {
    color: var(--text);
    font-weight: 600;
}

.form-check-label {
    color: var(--text);
}

.form-control,
.form-select,
.input-group-text {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 138, 5, 0.15);
}

/* Utility */
.text-muted,
.text-light,
.text-info {
    color: var(--muted) !important;
}

.text-primary {
    color: var(--brand) !important;
}

.logo,
.brand-logo {
    display: block;
}

.logo {
    width: 110px;
    height: auto;
}

/* Responsive tweaks */
@media (max-width: 780px) {
    .brand-logo {
        height: 28px;
    }
}

.dash-segment {
    background-color: var(--surface);
    padding: 2%;
    border-radius: 20px;
}

