/* ==========================================================================
   PSYCHO TRANSLATIONS - MINIMAL DESIGN SYSTEM
   Clean, Minimal, High-Contrast & Content-Focused Aesthetics
   ========================================================================== */

:root {
    --bg-base: #09090b;
    --bg-surface: #121216;
    --bg-subtle: #18181c;
    --bg-muted: #222227;
    --border-subtle: #27272a;
    --border-hairline: rgba(255, 255, 255, 0.08);
    --border-hover: #3f3f46;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Minimal Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Minimal Panels & Surfaces */
.min-surface {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.min-surface:hover {
    border-color: var(--border-hover);
}

.min-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.min-card:hover {
    border-color: #52525b;
}

/* Minimal Buttons */
.btn-primary {
    background: #ffffff;
    color: #09090b;
    font-weight: 600;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    color: var(--text-main);
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-muted);
}

/* Tabs & Switcher */
.tab-btn.active {
    background: #ffffff !important;
    color: #09090b !important;
    border-color: #ffffff !important;
}

.view-btn.active {
    background: #ffffff !important;
    color: #09090b !important;
    border-color: #ffffff !important;
}

/* Minimal Table Styling */
.table-row-item {
    transition: background-color 0.15s ease;
}
.table-row-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Modal Dialog */
.modal-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}
.modal-backdrop.is-open {
    opacity: 1;
}

.modal-content {
    transform: scale(0.97);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease-out;
}
.modal-backdrop.is-open .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Minimal Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: #18181c;
    border: 1px solid #3f3f46;
    color: #fafafa;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
