:root {
    --cs-primary: #0d6efd;
    --cs-dark: #1a1d23;
    --cs-darker: #12141a;
    --cs-border: #2d3238;
}

body {
    background-color: var(--cs-darker);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--cs-dark);
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card {
    background: var(--cs-dark);
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: var(--cs-primary);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: #8b949e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.3;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--cs-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-height: 80px;
    gap: 0.35rem;
}

.product-label:hover {
    border-color: var(--product-color);
    background: rgba(255, 255, 255, 0.03);
}

input[type="radio"]:checked + .product-label {
    border-color: var(--product-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px var(--product-color);
}

input[type="radio"]:checked + .product-label i {
    color: var(--product-color);
}

.log-container {
    max-height: 500px;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 0.8rem;
    padding: 1rem;
    background: #0d1117;
}

.log-entry {
    padding: 0.35rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.log-time {
    color: #8b949e;
    flex-shrink: 0;
}

.log-level {
    font-size: 0.65rem;
    flex-shrink: 0;
    min-width: 55px;
    text-align: center;
}

.log-phase {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.log-message {
    color: #c9d1d9;
    word-break: break-word;
}

.log-error .log-message {
    color: #f85149;
}

.log-success .log-message {
    color: #3fb950;
}

.log-warning .log-message {
    color: #d29922;
}

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

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.table-dark {
    --bs-table-bg: transparent;
}

.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3d8bfd, #0d6efd);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-complete {
    background: #198754;
    color: white;
}

.step-active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

.step-pending {
    background: #2d3238;
    color: #8b949e;
    border: 1px solid #3d4248;
}

.identity-option {
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
}

.identity-option:hover {
    border-color: #0d6efd !important;
    transform: translateY(-2px);
}

.nav-tabs .nav-link {
    color: #8b949e;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link.active {
    color: #fff;
    background: transparent;
    border-bottom-color: #0d6efd;
}

.nav-tabs .nav-link:hover {
    color: #c9d1d9;
    border-bottom-color: #3d4248;
}

.nav-tabs {
    border-bottom: 1px solid var(--cs-border);
}

.customer-card {
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.customer-card:hover {
    border-color: var(--cs-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.15);
}

.project-tabs .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

@media (max-width: 768px) {
    .project-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .project-tabs .nav-item {
        flex-shrink: 0;
    }
    .project-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}
