/* Order Platform Core - Frontend Shell
 * Dark full-screen dashboard layout for order.evirado.com
 */

:root {
    --ops-bg: #050814;
    --ops-bg-elevated: #0b1020;
    --ops-bg-elevated-soft: rgba(19, 27, 53, 0.9);
    --ops-border-subtle: rgba(255, 255, 255, 0.06);
    --ops-accent: #32b2ff;
    --ops-accent-soft: rgba(50, 178, 255, 0.16);
    --ops-text: #f7f9ff;
    --ops-text-muted: #a2aac7;
    --ops-danger: #ff4b6a;
    --ops-radius-xl: 18px;
    --ops-radius-pill: 999px;
    --ops-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.65);
    --ops-header-height: 64px;
    --ops-sidebar-width: 230px;
    --ops-transition-fast: 160ms ease-out;
}

.ops-shell {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top left, #17203d 0, #050814 45%, #020309 100%);
    color: var(--ops-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.ops-shell__header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-bottom: 1px solid var(--ops-border-subtle);
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(5, 8, 20, 0.92), rgba(5, 8, 20, 0.88));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.ops-shell__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ops-shell__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 30%;
    background: radial-gradient(circle at 10% 0, #ffffff 0, #32b2ff 30%, #0073ff 100%);
    color: #050814;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.85);
}

.ops-shell__logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ops-text-muted);
}

.ops-shell__header-center {
    display: none;
}

.ops-shell__env-tag {
    padding: 4px 11px;
    border-radius: var(--ops-radius-pill);
    border: 1px solid var(--ops-border-subtle);
    background: var(--ops-accent-soft);
    color: var(--ops-accent);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ops-shell__header-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.ops-shell__toggle-theme {
    border: 0;
    border-radius: var(--ops-radius-pill);
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--ops-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    box-shadow: 0 0 0 1px var(--ops-border-subtle);
    transition: transform var(--ops-transition-fast), box-shadow var(--ops-transition-fast), background var(--ops-transition-fast), color var(--ops-transition-fast);
}

.ops-shell__toggle-theme:hover {
    transform: translateY(-1px);
    box-shadow: var(--ops-shadow-soft);
    color: var(--ops-text);
}

.ops-shell__icon {
    font-size: 16px;
    line-height: 1;
}

.ops-shell__icon--moon {
    opacity: 0.9;
}

.ops-shell__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--ops-radius-pill);
    border: 1px solid var(--ops-border-subtle);
    background: rgba(15, 23, 42, 0.95);
    color: var(--ops-text);
    text-decoration: none;
    font-size: 14px;
    transition: background var(--ops-transition-fast), transform var(--ops-transition-fast), box-shadow var(--ops-transition-fast), border-color var(--ops-transition-fast);
}

.ops-shell__cart:hover {
    background: var(--ops-accent-soft);
    border-color: var(--ops-accent);
    transform: translateY(-1px);
    box-shadow: var(--ops-shadow-soft);
}

.ops-shell__cart-icon {
    font-size: 16px;
}

.ops-shell__cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(to bottom right, #32b2ff, #14f1ff);
    color: #050814;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 7px 18px rgba(0, 0, 0, 0.9);
}

.ops-shell__user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ops-shell__user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #ffffff 0, #32b2ff 45%, #4f46e5 100%);
    color: #050814;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), 0 10px 22px rgba(0, 0, 0, 0.85);
}

.ops-shell__user-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    color: var(--ops-text);
    opacity: 0.86;
}

.ops-shell__logout,
.ops-shell__login {
    font-size: 13px;
    color: var(--ops-danger);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--ops-radius-pill);
    border: 1px solid transparent;
    background: transparent;
    transition: background var(--ops-transition-fast), border-color var(--ops-transition-fast), color var(--ops-transition-fast);
}

.ops-shell__login {
    color: var(--ops-accent);
}

.ops-shell__logout:hover,
.ops-shell__login:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.8);
    color: var(--ops-text);
}

.ops-shell__body {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    flex: 1 1 auto;
    min-height: calc(100vh - var(--ops-header-height));
}

.ops-shell__sidebar {
    width: var(--ops-sidebar-width);
    padding: 16px 12px 18px;
    border-right: 1px solid var(--ops-border-subtle);
    background: radial-gradient(circle at 0 0, rgba(23, 37, 84, 0.7), rgba(2, 6, 23, 0.96));
    box-shadow: 18px 0 38px rgba(0, 0, 0, 0.65);
    position: sticky;
    top: var(--ops-header-height);
    align-self: flex-start;
    max-height: calc(100vh - var(--ops-header-height));
    overflow-y: auto;
}

.ops-shell__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ops-shell__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ops-text-muted);
    text-decoration: none;
    transition: background var(--ops-transition-fast), color var(--ops-transition-fast), transform var(--ops-transition-fast), box-shadow var(--ops-transition-fast);
    border: 1px solid transparent;
}

.ops-shell__nav-item:hover {
    background: var(--ops-accent-soft);
    color: var(--ops-text);
    border-color: rgba(148, 163, 234, 0.6);
    transform: translateX(2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.8);
}

.ops-shell__nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.ops-shell__nav-label {
    flex: 1;
}

.ops-shell__content {
    flex: 1 1 auto;
    padding: 18px 18px 24px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.ops-shell__content-inner {
    width: 100%;
    border-radius: 24px;
    padding: 18px 18px 22px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.26), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 234, 0.35);
    box-shadow: var(--ops-shadow-soft);
    overflow: hidden;
}

/* Make WooCommerce forms / tables look nicer inside shell */
.ops-shell__content-inner .woocommerce {
    color: var(--ops-text);
}

.ops-shell__content-inner .woocommerce a {
    color: var(--ops-accent);
}

.ops-shell__content-inner .woocommerce table.shop_table {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    overflow: hidden;
    border-color: rgba(148, 163, 234, 0.3);
}

.ops-shell__content-inner .woocommerce .button,
.ops-shell__content-inner .woocommerce button.button,
.ops-shell__content-inner .woocommerce a.button {
    border-radius: 999px;
    background: linear-gradient(to right, #32b2ff, #14f1ff);
    border: none;
    color: #050814;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.9);
    padding: 10px 20px;
    transition: transform var(--ops-transition-fast), box-shadow var(--ops-transition-fast), filter var(--ops-transition-fast);
}

.ops-shell__content-inner .woocommerce .button:hover,
.ops-shell__content-inner .woocommerce button.button:hover,
.ops-shell__content-inner .woocommerce a.button:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 1);
}

/* Responsive */
@media (max-width: 960px) {
    :root {
        --ops-sidebar-width: 0px;
    }

    .ops-shell__header-center {
        display: none;
    }

    .ops-shell__body {
        flex-direction: column;
    }

    .ops-shell__sidebar {
        display: none;
    }

    .ops-shell__content {
        padding: 14px 10px 18px;
    }

    .ops-shell__content-inner {
        border-radius: 20px;
        padding: 14px 10px 18px;
    }
}

@media (max-width: 640px) {
    .ops-shell__header {
        padding-inline: 12px;
    }

    .ops-shell__logo-text {
        display: none;
    }

    .ops-shell__header-right {
        gap: 10px;
    }

    .ops-shell__user-name {
        display: none;
    }
}
