/* OHMS — operational component layer.
 *
 * Re-uses the original class names (status-tile, sliding-drawer, asset-row,
 * hover-card, action-icons, professional-elevation-*) so existing pages do
 * not need to change, but reskins everything onto the void/cyan palette.
 *
 * Token aliases (defined here for compatibility with any older selector
 * still pointing at --enterprise-*). */

:root {
    --enterprise-primary:        var(--ohms-cyan);
    --enterprise-primary-dark:   var(--ohms-cyan-dim);
    --enterprise-success:        #00E5C8;
    --enterprise-success-dark:   #00B8A0;
    --enterprise-warning:        #FFB347;
    --enterprise-warning-dark:   #E69628;
    --enterprise-info:           #4DD0E1;
    --enterprise-info-dark:      #26B8C9;
    --enterprise-surface:        var(--ohms-deep);
    --enterprise-background:     var(--ohms-void);
    --enterprise-inactive:       rgba(220, 245, 250, 0.30);
}

/* ─── Status tiles ─────────────────────────────────────────────────────── */

.status-tile {
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 240ms cubic-bezier(0.4, 0, 0.2, 1),
                border-color 240ms ease;
    border: 1px solid var(--ohms-line);
    background: var(--ohms-deep);
}

.status-tile:hover {
    transform: translateY(-2px);
    border-color: var(--ohms-line-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55),
                0 0 0 1px var(--ohms-line-strong),
                0 0 32px rgba(0, 229, 255, 0.10) !important;
}

/* ─── Sliding drawer (right-side detail panel) ─────────────────────────── */

.sliding-drawer {
    position: fixed;
    top: 0;
    right: -650px;
    width: 650px;
    height: 100vh;
    background: var(--ohms-deep);
    border-left: 1px solid var(--ohms-line-strong);
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.6),
                -1px 0 0 var(--ohms-line-strong),
                -16px 0 64px rgba(0, 229, 255, 0.08);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1300;
    display: flex;
    flex-direction: column;
}

.sliding-drawer.open { right: 0; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--ohms-line);
    background: var(--ohms-void);
    font-family: var(--ohms-font-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--ohms-dim);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 3, 6, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1299;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ─── Asset grid rows ──────────────────────────────────────────────────── */

.asset-row {
    transition: background-color 200ms ease-in-out, border-color 200ms ease;
    border-left: 2px solid transparent;
}

.asset-row:hover {
    background-color: rgba(0, 229, 255, 0.04) !important;
    border-left-color: var(--ohms-line-strong);
}

.action-icons {
    opacity: 0;
    transition: opacity 240ms ease-in-out;
}

.asset-row:hover .action-icons { opacity: 1; }

.action-icon-button {
    transition: transform 180ms ease-in-out, background-color 180ms;
    color: var(--ohms-lume);
}

.action-icon-button:hover {
    transform: scale(1.08);
    background-color: rgba(0, 229, 255, 0.12);
    color: var(--ohms-cyan);
}

/* ─── Card hover (e.g. dashboard tiles) ────────────────────────────────── */

.hover-card {
    transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 260ms cubic-bezier(0.4, 0, 0.2, 1),
                border-color 260ms ease;
    border: 1px solid var(--ohms-line);
}

.hover-card:hover {
    transform: translateY(-2px);
    border-color: var(--ohms-line-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55),
                0 0 24px rgba(0, 229, 255, 0.10);
}

/* ─── Loading pulse ───────────────────────────────────────────────────── */

@keyframes pulse-professional {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.loading-pulse {
    animation: pulse-professional 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: var(--ohms-cyan);
}

/* ─── Chips & rows (legacy class hooks) ────────────────────────────────── */

.mud-table-row {
    transition: background-color 200ms ease-in-out, transform 0.1s ease-in-out;
}

.mud-table-row:active { transform: scale(0.995); }

/* ─── Elevation utilities ──────────────────────────────────────────────── */

.professional-elevation-1 {
    box-shadow: 0 1px 0 var(--ohms-line);
}

.professional-elevation-2 {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45),
                0 0 0 1px var(--ohms-line);
}

.professional-elevation-4 {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55),
                0 0 0 1px var(--ohms-line);
}

.professional-elevation-8 {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65),
                0 0 0 1px var(--ohms-line-strong);
}
