/* --- Core Variables and Aesthetics --- */
:root {
    --bg-main: #0b0c10;
    --bg-panel: #12141c;
    --bg-card: rgba(26, 29, 41, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --color-primary: #8a2be2;      /* Neon Violet */
    --color-primary-glow: rgba(138, 43, 226, 0.15);
    --color-primary-subtle: rgba(138, 43, 226, 0.25);
    
    --color-success: #10b981;      /* Emerald */
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-success-border: rgba(16, 185, 129, 0.3);
    
    --color-warning: #f59e0b;      /* Amber */
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-warning-border: rgba(245, 158, 11, 0.3);
    
    --color-todo: #6b7280;         /* Cool Grey */
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', "Courier New", monospace;
}

/* --- Base Override --- */
html, body {
    height: 100%;
    margin: 0;
    background-color: var(--bg-main);
    color: #e2e8f0;
    font-family: var(--font-sans);
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Layout Elements --- */
.main-header {
    background-color: var(--bg-panel);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color) !important;
}

.sidebar-aside {
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color) !important;
}

.workspace-main {
    background-color: var(--bg-main);
    position: relative;
}

/* --- Category List & Navigation Items --- */
.category-group-header {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a78bfa;
    padding: 0.8rem 0.5rem 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.category-group-header:first-of-type {
    margin-top: 0;
}

.test-item-link {
    display: flex;
    align-items: center;
    justify-content: justify;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.35rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.test-item-link:hover {
    color: #f1f5f9;
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.test-item-link.active {
    color: #ffffff;
    background-color: var(--color-primary-glow);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.1);
}

.test-item-link .test-id-badge {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}

.test-item-link.active .test-id-badge {
    background-color: var(--color-primary-subtle);
    border-color: rgba(138, 43, 226, 0.5);
    color: #f5f3ff;
}

.test-item-link .status-dot {
    margin-left: auto;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Status specific stylings for navigation */
.test-item-link[data-status="done"] {
    border-left: 2px solid var(--color-success);
}
.test-item-link[data-status="done"] .status-dot {
    color: var(--color-success);
}

.test-item-link[data-status="skip"] {
    border-left: 2px solid var(--color-warning);
}
.test-item-link[data-status="skip"] .status-dot {
    color: var(--color-warning);
}

.test-item-link[data-status="todo"] {
    border-left: 2px solid var(--color-todo);
}
.test-item-link[data-status="todo"] .status-dot {
    color: var(--color-todo);
    opacity: 0.4;
}

/* --- Premium Workspace Cards --- */
.card-premium {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
}

.details-content-card {
    background-color: #121318 !important;
    border: 1px solid var(--border-color) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 0.75rem;
    font-family: var(--font-sans);
}

/* Formatting inside details */
.details-content-card code {
    font-family: var(--font-mono);
    color: #f472b6;
    background-color: rgba(244, 114, 182, 0.1);
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.88em;
}

.details-content-card pre {
    background-color: #08090c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.details-content-card pre code {
    background-color: transparent;
    padding: 0;
    color: #38bdf8; /* Soft blue for bash/cli */
    font-size: 0.9em;
}

/* --- Notes Input --- */
.form-notes-input {
    background-color: #11131a;
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    resize: vertical;
}

.form-notes-input:focus {
    background-color: #151821;
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.15);
    color: #ffffff;
}

/* --- Welcome / Empty State Dashboard --- */
.glass-dashboard-card {
    background: rgba(18, 20, 28, 0.45);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    max-width: 700px;
    width: 100%;
}

.fs-huge {
    font-size: 4rem;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* --- Buttons and Controls --- */
.btn-group {
    background-color: #181b26;
}

.btn-group .btn {
    border-radius: 0 !important;
}

/* Highlight styles for status selector button group */
.btn-check:checked + .btn-outline-secondary {
    background-color: #4b5563 !important;
    color: white !important;
}

.btn-check:checked + .btn-outline-warning {
    background-color: var(--color-warning-bg) !important;
    border-color: var(--color-warning-border) !important;
    color: var(--color-warning) !important;
}

.btn-check:checked + .btn-outline-success {
    background-color: var(--color-success-bg) !important;
    border-color: var(--color-success-border) !important;
    color: var(--color-success) !important;
}

/* --- Animation Utilities --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animated-float {
    animation: float 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.animated-pulse {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Slide in animation when transitioning active test */
@keyframes slide-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-active {
    animation: slide-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-copy-code {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.btn-copy-code:hover {
    opacity: 1;
}

.inline-code-command {
    background-color: rgba(56, 189, 248, 0.1) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-family: var(--font-mono);
}
.inline-code-command .btn-link {
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
}
.inline-code-command .btn-link:hover {
    color: #ffffff !important;
}

