/* RevenuePulse Custom Styles */

/* Smooth transitions for dark mode */
*, *::before, *::after {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

/* Sidebar active state */
.sidebar-link.active {
    background-color: rgba(247, 97, 0, 0.1);
    color: #F76100;
    border-right: 3px solid #F76100;
}

.dark .sidebar-link.active {
    background-color: rgba(247, 97, 0, 0.15);
}

/* Focus ring */
input:focus, select:focus, textarea:focus, button:focus-visible {
    outline: 2px solid #F76100;
    outline-offset: 1px;
}

/* TOTP code input */
.totp-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    border-radius: 0.5rem;
}

/* Installer step indicator */
.step-indicator .step.completed {
    background-color: #F76100;
    color: white;
}

.step-indicator .step.current {
    background-color: #F76100;
    color: white;
    box-shadow: 0 0 0 4px rgba(247, 97, 0, 0.2);
}

.step-indicator .step.upcoming {
    background-color: #e5e7eb;
    color: #9ca3af;
}

.dark .step-indicator .step.upcoming {
    background-color: #374151;
    color: #6b7280;
}

.step-indicator .connector.completed {
    background-color: #F76100;
}

.step-indicator .connector.upcoming {
    background-color: #e5e7eb;
}

.dark .step-indicator .connector.upcoming {
    background-color: #374151;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(247, 97, 0, 0.2);
    border-top-color: #F76100;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.6s linear infinite;
}

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

/* Flash message animations */
.flash-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effect */
.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.dark .card-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Button loading state */
button[disabled], .btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
