/* Filename: business/assets/css/style.css
 * Purpose: Global styles for the Business Suite application.
 * UPDATED: Cleaned up to support the new separate mobile/desktop sidebar architecture.
 */

/* --- 1. Base Styles & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html,
body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background-color: #f3f4f6;
    height: 100%;
    margin: 0;
    padding: 0;
}

body.dark {
    color: #f9fafb;
    background-color: #111827;
}

/* --- 2. Custom Scrollbars (Used in Sidebar & Content) --- */

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 20px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #d1d5db;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #374151;
}

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

/* --- 3. Component Styles --- */

/* Sidebar & Accordion Transitions */
.accordion-content {
    transition: all 0.2s ease-in-out;
}

.accordion-arrow {
    transition: transform 0.2s ease-in-out;
}

/* Sidebar Links */
.sidebar-link {
    transition: all 0.15s ease-in-out;
}

/* Mobile Backdrop Transition */
#mobile-backdrop {
    transition: opacity 0.3s ease-in-out;
}

/* --- 4. Utility Components --- */

/* Notification Area */
#notification-area {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    max-width: 90%;
    width: 400px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s ease-in-out infinite;
}

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

/* --- 5. Tab System --- */
.tab-btn {
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.tab-btn.active {
    border-bottom-color: #4f46e5;
    /* Indigo-600 */
    color: #4f46e5;
}

.dark .tab-btn.active {
    border-bottom-color: #818cf8;
    /* Indigo-400 */
    color: #818cf8;
}

/* --- 6. Form Elements --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6366f1;
    /* Indigo-500 */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.dark input,
.dark select,
.dark textarea {
    background-color: #1f2937;
    border-color: #374151;
    color: white;
}

.dark input:focus,
.dark select:focus,
.dark textarea:focus {
    border-color: #818cf8;
}