/* ========================================
   FIRSTWATCH LICENSE MANAGER
   Common Styles
   ======================================== */

/* === BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f1419;
    color: #e4e6eb;
    line-height: 1.6;
    overflow-x: hidden;
}

/* === APP CONTAINER === */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* === TOP HEADER (inside main content) === */
.top-header {
    background: #16191e;
    border-bottom: 1px solid #2d3139;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.page-title-section {
    flex-shrink: 0;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #e4e6eb;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.page-subtitle {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === SIDEBAR === */

.sidebar {
    width: 240px;
    background: #16191e;
    border-right: 1px solid #2d3139;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.3s ease;
    position: relative;
}

/* Collapsed sidebar state */
.sidebar.collapsed {
    width: 70px;
    overflow: visible;
}

/* Sidebar header with toggle */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #2d3139;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar.collapsed .sidebar-header {
    padding: 0.75rem 0.5rem;
}

/* Toggle button - right aligned when expanded, centered when collapsed */
.sidebar-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-end;
    margin-bottom: 0.5rem;
}

.sidebar.collapsed .sidebar-toggle {
    align-self: center;
}

.sidebar-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
}

/* Logo container - centered */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Sidebar logo - larger and centered */
.sidebar-logo {
    width: 100px;
    height: 100px;
    background: url("logo.webp") no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.sidebar.collapsed .sidebar-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
}

.sidebar.collapsed .logo-container {
    margin-top: 0;
}

/* Sidebar title - larger and centered */
.sidebar-title {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e4e6eb;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    letter-spacing: 0.1em;
    text-align: center;
}

/* Hide title when collapsed */
.sidebar.collapsed .sidebar-title {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

/* Allow tooltips to overflow when collapsed */
.sidebar.collapsed .sidebar-nav {
    overflow: visible;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e4e6eb;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-item .nav-text {
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

/* Hide nav text when collapsed */
.sidebar.collapsed .nav-item .nav-text {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* Center nav icons when collapsed */
.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem;
    border-left: none;
}

.sidebar.collapsed .nav-item.active {
    border-left: none;
    border-radius: 6px;
    margin: 0 0.5rem;
}

/* Tooltips for collapsed nav items */
.sidebar.collapsed .nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: fixed;
    left: 80px;
    background: #1c1f26;
    color: #e4e6eb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #2d3139;
    z-index: 9999;
    pointer-events: none;
}

/* Show tooltip on hover */
.sidebar.collapsed .nav-item[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

.nav-section-title {
    padding: 1rem 1.25rem 0.5rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.2s ease;
}

/* Hide section titles when collapsed */
.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* === SIDEBAR FOOTER === */
.sidebar-footer {
    position: relative;
    padding: 1rem;
    border-top: 1px solid #2d3139;
    margin-top: auto;
    overflow: visible;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-profile:hover {
    background: rgba(59, 130, 246, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 18px;
    height: 18px;
    color: #3b82f6;
}

.user-details {
    flex: 1;
    min-width: 0;
    transition: opacity 0.2s ease;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #e4e6eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-small {
    font-size: 11px;
    color: #3b82f6;
    text-transform: uppercase;
    font-weight: 600;
}

.user-menu-chevron {
    color: #64748b;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.user-menu-chevron svg {
    width: 16px;
    height: 16px;
}

/* Hide user details when collapsed */
.sidebar.collapsed .user-details,
.sidebar.collapsed .user-menu-chevron {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .sidebar-footer {
    padding: 0.75rem 0.5rem;
    overflow: visible;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    min-width: 200px;
    width: max-content;
    background: #1c1f26;
    border: 1px solid #2d3139;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    overflow: hidden;
    z-index: 1000;
}

/* When sidebar is collapsed, position dropdown to the right */
.sidebar.collapsed .user-menu-dropdown {
    left: 100%;
    bottom: 0;
    margin-bottom: 0;
    margin-left: 0.5rem;
}

.user-menu-dropdown.show {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.user-menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #e4e6eb;
}

.user-menu-item svg {
    width: 16px;
    height: 16px;
}

.user-menu-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.user-menu-divider {
    height: 1px;
    background: #2d3139;
    margin: 0.25rem 0;
}

/* App Version Display */
.app-version {
    text-align: center;
    font-size: 0.7rem;
    color: #64748b;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #2d3139;
}

.sidebar.collapsed .app-version {
    font-size: 0.6rem;
    padding: 0.25rem;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* === CONTENT AREA === */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #0f1419;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #1c1f26;
    border: 1px solid #2d3139;
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card.danger::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.stat-card.success::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stat-label {
    color: #9ca3af;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #e4e6eb;
}

.stat-subtitle {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* === CARDS === */
.card {
    background: #1c1f26;
    border: 1px solid #2d3139;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #2d3139;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
}

.card-body {
    padding: 1.25rem;
}

/* === DATA TABLE === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table thead {
    background: #16191e;
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: #3b82f6;
    font-weight: 600;
    border-bottom: 2px solid #2d3139;
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2d3139;
    color: #e4e6eb;
}

.data-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.data-table .actions {
    display: flex;
    gap: 0.5rem;
}

/* === STATUS BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.5rem;
    min-width: auto;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e4e6eb;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #64748b;
}

select.form-control {
    cursor: pointer;
    height: auto;
    min-height: 42px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-help {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* === MODAL === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #1c1f26;
    border: 1px solid #2d3139;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #2d3139;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #3b82f6;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #2d3139;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* === ALERTS === */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* === SEARCH & FILTERS === */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e4e6eb;
    font-size: 0.9rem;
}

.search-input svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 18px;
    height: 18px;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: #1c1f26;
    border: 1px solid #2d3139;
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

/* === LOADING === */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2d3139;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #64748b; }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.hidden { display: none !important; }

/* === BULK ACTIONS BAR === */
.bulk-actions-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bulk-actions-bar span {
    font-weight: 500;
    color: #3b82f6;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: #1c1f26;
    border: 1px solid #2d3139;
    color: #e4e6eb;
    font-size: 14px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification-success {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.notification-error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.notification-info {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #2d3139;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
    }

    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.5rem 1rem;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: #3b82f6;
    }

    .nav-section-title {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-area {
        padding: 1rem;
    }
}


/* ==========================================================================
   Onboarding step list
   ========================================================================== */

.onboard-steps {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.onboard-steps li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.onboard-steps .step-mark {
    display: inline-block;
    width: 1.1rem;
    font-weight: 700;
}

.onboard-steps .step-done .step-mark,
.onboard-steps li.step-done { color: var(--color-success, #16a34a); }

.onboard-steps .step-failed .step-mark,
.onboard-steps li.step-failed { color: var(--color-danger, #dc2626); }

.onboard-steps li.step-running { color: var(--color-text-muted, #64748b); }
