/* panel/public/assets/css/panel.css */

/* ======================================================
   Variables & Base
   ====================================================== */
:root {
    --sidebar-width: 240px;
    --sidebar-bg: #1a1d23;
    --primary: #0d6efd;
    --success: #198754;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    background: #f0f2f5;
}

/* ======================================================
   Layout: Sidebar + Main
   ====================================================== */
body.d-flex {
    min-height: 100vh;
}

#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg) !important;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

main {
    min-height: 100vh;
    background: #f0f2f5;
}

/* Sidebar nav links */
#sidebar .nav-link {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.875rem;
    transition: background 0.15s;
}

#sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

#sidebar .nav-link.active {
    background: var(--primary);
}

/* ======================================================
   Cards & Stats
   ====================================================== */
.card {
    border-radius: 12px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ======================================================
   Wizard / Step indicator
   ====================================================== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s;
    border: 2px solid #dee2e6;
}

.step-label {
    font-size: 11px;
    color: #6c757d;
    white-space: nowrap;
    font-weight: 500;
}

.step-item.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.step-item.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-item.completed .step-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.step-item.completed .step-label {
    color: var(--success);
}

/* Wizard steps visibility */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

/* ======================================================
   Credentials / Monospace
   ====================================================== */
.credential-block {
    background: #1a1d23;
    color: #e9ecef;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    position: relative;
    word-break: break-all;
}

.copy-btn {
    cursor: pointer;
    color: #6c757d;
    transition: color 0.15s;
}

.copy-btn:hover {
    color: var(--primary);
}

/* ======================================================
   Table tweaks
   ====================================================== */
.table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    font-weight: 600;
}

/* ======================================================
   Responsive sidebar
   ====================================================== */
@media (max-width: 768px) {
    #sidebar {
        width: 60px;
        overflow: hidden;
    }

    #sidebar span,
    #sidebar .nav-link span,
    #sidebar hr,
    .step-label {
        display: none;
    }

    #sidebar .nav-link {
        text-align: center;
        padding: 10px;
    }
}
