/* ===== iOS 26 Inspired Theme ===== */

:root {
    --ios-bg-start: #050816;
    --ios-bg-end: #0b1220;
    --ios-accent: #4f8cff;
    --ios-accent-soft: rgba(79, 140, 255, 0.15);
    --ios-card-bg: rgba(15, 23, 42, 0.78);
    --ios-card-border: rgba(148, 163, 184, 0.25);
    --ios-text-main: #e5e7eb;
    --ios-text-dim: #9ca3af;
    --ios-radius-xl: 24px;
    --ios-blur: 22px;
    --ios-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
    --ios-border-strong: 1px solid rgba(148, 163, 184, 0.35);
}

/* Base layout */

html,
body {
    height: 100%;
}

    body.ios-body {
        margin: 0;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
        background: radial-gradient(circle at top, #1f2937 0, #020617 50%, #000 100%);
        color: var(--ios-text-main);
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: stretch;
        padding: 12px;
    }

/* Main shell frames the app like an iPhone screen */

.ios-shell {
    width: 100%;
    max-width: 1180px;
    max-height: 780px;
    min-height: 100vh;
    margin: 0 auto;
    background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), transparent 55%), radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.16), transparent 55%), linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.92));
    border-radius: 32px;
    padding: 18px 18px 20px;
    box-shadow: var(--ios-shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Top header (like a floating dynamic island-ish bar) */

.ios-header {
    flex-shrink: 0;
    background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.25), rgba(15, 23, 42, 0.85));
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
    color: var(--ios-text-main);
}

/* Logo / dot */

.ios-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ios-logo-dot {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: conic-gradient(from 180deg, #4f46e5, #22c55e, #06b6d4, #f97316, #4f46e5);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ios-logo-dot::after {
        content: "";
        position: absolute;
        inset: 3px;
        border-radius: inherit;
        background: radial-gradient(circle at top, #111827, #020617);
    }

.ios-logo-icon {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: #e5e7eb;
    opacity: 0; /* show the house icon by changing this to 1 if you want */
}

/* Header text */

.ios-header-title {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
}

.ios-header-subtitle {
    font-size: 0.78rem;
    color: var(--ios-text-dim);
}

/* Online pill */

.ios-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
    font-size: 0.78rem;
}

/* Main content area */

.ios-main-content {
    margin-top: 16px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.14), transparent 45%), radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 45%), radial-gradient(circle at bottom left, rgba(52, 211, 153, 0.18), transparent 45%), rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(var(--ios-blur));
    -webkit-backdrop-filter: blur(var(--ios-blur));
    padding: 18px 18px 16px;
}

    /* Adjust bootstrap container inside main */

    .ios-main-content .container {
        max-width: 100%;
    }

/* Hub page header */

.hub-header-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hub-header-subtitle {
    font-size: 0.85rem;
    color: var(--ios-text-dim);
}

/* Search / quick actions row */

.hub-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hub-search-input {
    flex: 1;
    min-width: 200px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
    color: var(--ios-text-main);
    padding: 8px 14px;
    font-size: 0.9rem;
}

    .hub-search-input:focus {
        outline: none;
        border-color: rgba(79, 140, 255, 0.8);
        box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.7);
    }

.hub-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
    padding: 6px 11px;
    font-size: 0.78rem;
    color: var(--ios-text-dim);
}

/* Tabs styled as iOS segmented control */

.nav-pills {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border-radius: 999px;
    padding: 3px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.95);
}

    .nav-pills .nav-link {
        border-radius: 999px;
        color: var(--ios-text-dim);
        font-size: 0.82rem;
        padding: 6px 14px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid transparent;
        transition: all 0.18s ease-out;
    }

        .nav-pills .nav-link:hover {
            color: var(--ios-text-main);
            background-color: rgba(15, 23, 42, 0.9);
        }

        .nav-pills .nav-link.active {
            background: radial-gradient(circle at top, #4f46e5, #2563eb);
            color: #eff6ff;
            border-color: rgba(191, 219, 254, 0.7);
            box-shadow: 0 10px 30px rgba(37, 99, 235, 0.7);
        }

/* Cards glass style */

.card {
    border-radius: 24px;
    border: 1px solid var(--ios-card-border);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 50%), radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(var(--ios-blur));
    -webkit-backdrop-filter: blur(var(--ios-blur));
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.95);
    color: var(--ios-text-main);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.8rem;
    color: var(--ios-text-dim);
}

/* Tables inside glass container */

.table {
    color: var(--ios-text-main);
    font-size: 0.8rem;
}

    .table thead tr {
        background: linear-gradient(to right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
    }

    .table thead th {
        border-color: rgba(55, 65, 81, 0.9);
        color: var(--ios-text-dim);
    }

    .table tbody tr {
        background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.98));
    }

        .table tbody tr + tr td {
            border-top-color: rgba(31, 41, 55, 0.9);
        }

/* Buttons */

.btn-primary,
.btn-success {
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    padding: 6px 14px;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.8);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    border-color: rgba(191, 219, 254, 0.8);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #4338ca, #1d4ed8);
    }

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: rgba(187, 247, 208, 0.9);
    box-shadow: 0 10px 26px rgba(22, 163, 74, 0.8);
}

.btn-outline-primary {
    border-radius: 999px;
    font-size: 0.8rem;
}

/* Icon picker looks like iOS chips */

.icon-option {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), rgba(15, 23, 42, 0.96));
    color: var(--ios-text-main, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    text-align: left;
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.1s ease-out, background 0.1s ease-out;
}

.icon-option-icon {
    font-size: 1rem;
}

.icon-option-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-option:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
    background: radial-gradient(circle at top, rgba(79, 70, 229, 0.4), rgba(15, 23, 42, 0.98));
}

/* Site icon (uploaded or default globe) */

.site-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #111827, #020617);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

    .site-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .site-icon i {
        font-size: 1rem;
        color: #e5e7eb;
    }

/* Responsive tweaks */

@media (max-width: 768px) {
    .ios-shell {
        max-height: none;
        height: auto;
        padding: 12px;
    }

    .ios-main-content {
        padding: 0.75rem;
    }

    .ios-header {
        padding: 8px 10px;
    }

    .ios-header-title {
        font-size: 1rem;
    }

    .ios-header-subtitle {
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) {
    .ios-main-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}
