﻿
/* Enhanced Business Color Palette */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --accent-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --secondary-color: #f093fb;
    --accent-color: #fa709a;
    --success-color: #4facfe;
    --warning-color: #43e97b;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-card: #ffffff;
    --background-sidebar: linear-gradient(180deg, #1a202c 0%, #2d3748 100%);
    --background-nav: rgba(255, 255, 255, 0.95);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-sidebar: #e2e8f0;
    --text-sidebar-secondary: #a0aec0;
    --text-accent: #667eea;
    --border-color: #e2e8f0;
    --border-accent: #cbd5e0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 10px 25px -5px rgba(102, 126, 234, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark mode enhancements */
@@media (prefers-color-scheme: dark) {
    :root {
        --background-primary: #0f172a;
        --background-secondary: #1e293b;
        --background-card: #1e293b;
        --background-nav: rgba(15, 23, 42, 0.95);
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --border-color: #334155;
        --border-accent: #475569;
    }
}

/* Base Styles */
* {
    box-sizing: border-box;
}

.business-layout {
    min-height: 100vh;
    background: var(--background-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.layout-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
    transition: var(--transition-smooth);
}

/* Enhanced Sidebar */
.sidebar-container {
    background: var(--background-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
}

    .sidebar-container::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.5) 50%, transparent 100%);
    }

.brand-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.brand-text {
    flex: 1;
    min-width: 0;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-sidebar);
    margin: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-sidebar-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

    .sidebar-content::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-content::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 3px;
    }

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

/* FIXED: User Profile Hover - Completely stable hover */
/*.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.25rem;*/ /* Add margin to prevent edge issues */
    /*border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    transform-origin: center center;
}

    .user-profile:hover {
        background: rgba(102, 126, 234, 0.2);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);*/
        /* REMOVED: All transform properties to eliminate movement */
    /*}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-sidebar);
}

.profile-role {
    font-size: 0.75rem;
    color: var(--text-sidebar-secondary);
}*/

/* Enhanced Top Navigation */
/*.top-navigation {
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-nav);
    opacity: 0.95;
}

.nav-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}*/

/* FIXED: Menu toggle hover - Stable hover */
/*.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    padding: 0.5rem;
    margin: 0.125rem;*/ /* Add margin to prevent edge issues */
    /*cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

    .menu-toggle span {
        width: 20px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 1px;
        transition: background-color 0.2s ease;
    }

    .menu-toggle:hover {
        background: var(--background-secondary);*/
        /* REMOVED: Any transform properties */
    /*}

.breadcrumb-item {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center {
    display: flex;
    justify-content: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}*/

/* FIXED: Action Button Hover - Stable hover without movement */
/*.action-btn {
    position: relative;
    background: var(--background-secondary);
    border: 2px solid transparent;
    padding: 0.75rem;
    margin: 0.125rem;*/ /* Add margin to prevent edge hover issues */
    /*border-radius: var(--radius-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center center;
}

    .action-btn:hover {
        color: var(--primary-color);
        background: rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.2);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);*/
        /* REMOVED: All transform properties to eliminate movement */
    /*}

    .action-btn:active {
        background: rgba(102, 126, 234, 0.15);
        transform: scale(0.98);
    }

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--secondary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s infinite;
}*/

/* REMOVED: All hover-zone classes and pseudo-elements that were causing issues */

/* FIXED: Notification badge animation - Reduced intensity */
/*@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.5rem;
}*/

/* FIXED: Premium Link Hover - Stable hover without movement */
/*.premium-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin: 0.125rem;*/ /* Add margin to prevent edge hover issues */
    /*background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    transition: box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: var(--shadow-colored);
    position: relative;
    transform-origin: center center;
}

    .premium-link:hover {
        box-shadow: var(--shadow-lg), var(--shadow-colored);
        filter: brightness(1.05);*/
        /* REMOVED: All transform properties to eliminate movement */
    /*}

    .premium-link:active {
        transform: scale(0.98);
        filter: brightness(0.95);
    }*/

/* Enhanced Content Area */
/*.main-content-area {
    display: flex;
    flex-direction: column;
    background: var(--background-primary);
    overflow: hidden;
    position: relative;
    grid-column: 2;
    grid-row: 1;
}

.content-wrapper {
    flex: 1;
    position: relative;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

    .content-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .content-wrapper::-webkit-scrollbar-track {
        background: var(--background-secondary);
    }

    .content-wrapper::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 4px;
    }

        .content-wrapper::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

.content-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-gradient);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--success-gradient);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}*/

/* FIXED: Floating animation - Reduced movement distance */
/*@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {*/
        /* FIXED: Reduced from translateY(-20px) to more subtle movement */
        /*transform: translateY(-10px) rotate(120deg);
    }

    66% {*/
        /* FIXED: Reduced from translateY(10px) to more subtle movement */
        /*transform: translateY(5px) rotate(240deg);
    }
}

.content-container {
    position: relative;
    padding: 2rem;
    max-width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.content-card {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease-out;
    transition: var(--transition-smooth);
}

    .content-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-gradient);
    }*/

    /* FIXED: Content card hover - Stable hover without movement */
    /*.content-card:hover {
        box-shadow: var(--shadow-xl);
        border-color: rgba(102, 126, 234, 0.1);*/
        /* REMOVED: All transform properties to eliminate movement */
    /*}*/

/* FIXED: Slide up animation - Reduced movement distance */
/*@keyframes slideUp {
    from {
        opacity: 0;*/
        /* FIXED: Reduced from translateY(20px) to more subtle movement */
        /*transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* Responsive Design */
/*@media (max-width: 1200px) {
    .layout-container {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-content {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }

    .breadcrumb-item {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .layout-container {
        grid-template-columns: 1fr;
    }

    .sidebar-container {
        position: fixed;
        left: -320px;
        width: 320px;
        height: 100vh;
        transition: var(--transition-smooth);
        z-index: 25;
        grid-column: 1;
    }

        .sidebar-container.open {
            left: 0;
        }

    .main-content-area {
        grid-column: 1;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-content {
        grid-template-columns: auto 1fr auto;
        padding: 1rem;
    }

    .content-container {
        padding: 1rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .premium-link span {
        display: none;
    }*/

    /* FIXED: Mobile hover fixes - Completely disable problematic hovers */
    /*.user-profile:hover,
    .action-btn:hover,
    .premium-link:hover,
    .content-card:hover,
    .menu-toggle:hover {
        transform: none !important;
        filter: none !important;
        background: var(--background-secondary) !important;
        color: var(--text-primary) !important;
    }

    .premium-link:hover {
        background: var(--primary-gradient) !important;
        color: white !important;
        filter: brightness(1.1) !important;
    }
}

@media (max-width: 480px) {
    .brand-header {
        padding: 1.5rem 1rem 1rem;
    }

    .brand-title {
        font-size: 1.125rem;
    }

    .nav-content {
        padding: 0.75rem;
    }

    .action-btn {
        padding: 0.5rem;
    }

    .content-container {
        padding: 0.75rem;
    }
}*/

/* Enhanced RTL Support - FIXED */
/*[dir="rtl"] .layout-container {
    grid-template-columns: 1fr 320px;
    direction: rtl;
}

[dir="rtl"] .sidebar-container {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    grid-column: 2;
}

    [dir="rtl"] .sidebar-container::before {
        right: auto;
        left: 0;
    }

[dir="rtl"] .main-content-area {
    grid-column: 1;
}

[dir="rtl"] .brand-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .user-profile {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-left {
    justify-content: flex-end;
}

[dir="rtl"] .nav-right {
    justify-content: flex-start;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .premium-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .notification-badge {
    right: auto;
    left: -2px;
}*/

/* RTL Responsive fixes */
/*@media (max-width: 1200px) {
    [dir="rtl"] .layout-container {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .layout-container {
        grid-template-columns: 1fr;
    }

    [dir="rtl"] .sidebar-container {
        left: auto;
        right: -320px;
        grid-column: 1;
    }

        [dir="rtl"] .sidebar-container.open {
            right: 0;
            left: auto;
        }

    [dir="rtl"] .main-content-area {
        grid-column: 1;
    }
}*/

/* Enhanced focus states for accessibility */
/*.action-btn:focus,
.premium-link:focus,
.user-profile:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}*/

/* Business-style loading animation */
/*@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}*/

/* ADDED: Proximity-based hover effects for enhanced UX */
/*.hover-zone {
    position: relative;
}

    .hover-zone::after {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        border-radius: inherit;
        pointer-events: none;
        transition: var(--transition-smooth);
        z-index: -1;
    }

    .hover-zone:hover::after {
        background: rgba(102, 126, 234, 0.05);
    }*/

/* FIXED: Accessibility - Disable all transforms for reduced motion */
/*@media (prefers-reduced-motion: reduce) {
    .user-profile:hover,
    .action-btn:hover,
    .premium-link:hover,
    .content-card:hover,
    .menu-toggle:hover {
        transform: none !important;
        filter: none !important;
    }

    .gradient-orb {
        animation: none !important;
    }

    .notification-badge {
        animation: none !important;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}*/

