/* ========================================
   Professional Theme - Role-Based UI Theme
   Applied only for Professional users (user_type == 1)
   ======================================== */

/* Professional Theme Color Palette
   - Primary: Deep Teal/Blue-Green (#0d9488, #14b8a6)
   - Accent: Warm Amber (#f59e0b, #fbbf24)
   - Background: Rich Dark Teal (#0f766e, #134e4a)
   - Text: High contrast white/light gray
   - Hover: Subtle light teal (#5eead4)
   - Active: Vibrant teal (#2dd4bf)
   
   Design Philosophy:
   - Professional and modern
   - High contrast for readability (WCAG AA compliant)
   - Distinct from Customer theme
   - Easy on the eyes
*/

/* Customer Theme (default) - uses base colors */
.theme-customer {
    /* Customer theme inherits default colors from base CSS */
    /* No overrides needed - all components use default styling */
}

/* Professional Theme Variables */
.theme-professional {
    /* Sidebar Colors */
    --pro-sidebar-bg: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
    --pro-sidebar-header-bg: rgba(0, 0, 0, 0.15);
    --pro-sidebar-border: rgba(255, 255, 255, 0.12);
    --pro-sidebar-hover: rgba(94, 234, 212, 0.15);
    --pro-sidebar-active: rgba(45, 212, 191, 0.25);
    --pro-sidebar-text: rgba(255, 255, 255, 0.95);
    --pro-sidebar-text-muted: rgba(255, 255, 255, 0.75);
    
    /* Top Navigation/Header Colors */
    --pro-header-bg: #0d9488;
    --pro-header-text: #ffffff;
    --pro-header-border: rgba(255, 255, 255, 0.1);
    --pro-header-hover: rgba(255, 255, 255, 0.1);
    --pro-header-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
    
    /* Menu Item Colors */
    --pro-menu-active-border: #14b8a6;
    --pro-menu-hover-border: #5eead4;
    --pro-menu-icon-active: #fbbf24;
    --pro-menu-icon-hover: #f59e0b;
    
    /* User Avatar Colors */
    --pro-avatar-bg: linear-gradient(135deg, #14b8a6, #0d9488);
    --pro-avatar-hover-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    
    /* Language Switcher */
    --pro-lang-bg: rgba(255, 255, 255, 0.12);
    --pro-lang-border: rgba(255, 255, 255, 0.2);
    --pro-lang-hover: rgba(255, 255, 255, 0.2);
    
    /* Submenu Colors */
    --pro-submenu-bg: rgba(0, 0, 0, 0.15);
    --pro-submenu-dot: rgba(255, 255, 255, 0.6);
    --pro-submenu-dot-hover: #fbbf24;
    
    /* Scrollbar */
    --pro-scrollbar-track: rgba(255, 255, 255, 0.08);
    --pro-scrollbar-thumb: rgba(255, 255, 255, 0.25);
    --pro-scrollbar-thumb-hover: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Professional Sidebar Styles
   ======================================== */
.theme-professional .user-sidebar {
    background: var(--pro-sidebar-bg);
    box-shadow: 2px 0 12px rgba(15, 118, 110, 0.3);
}

.theme-professional .sidebar-header {
    background: var(--pro-sidebar-header-bg);
    border-bottom-color: var(--pro-sidebar-border);
}

/* Menu Links */
.theme-professional .menu-link {
    color: var(--pro-sidebar-text);
}

.theme-professional .menu-link:hover {
    background-color: var(--pro-sidebar-hover);
    border-left-color: var(--pro-menu-hover-border);
    color: #ffffff;
}

.theme-professional .menu-link.active {
    background-color: var(--pro-sidebar-active);
    border-left-color: var(--pro-menu-active-border);
    color: #ffffff;
    box-shadow: inset 0 0 20px rgba(20, 184, 166, 0.2);
}

/* Menu Icons */
.theme-professional .menu-link:hover .menu-icon {
    color: var(--pro-menu-icon-hover);
}

.theme-professional .menu-link.active .menu-icon {
    color: var(--pro-menu-icon-active);
}

/* Submenu */
.theme-professional .submenu {
    background-color: var(--pro-submenu-bg);
}

.theme-professional .submenu .menu-link::before {
    background-color: var(--pro-submenu-dot);
}

.theme-professional .submenu .menu-link:hover::before {
    background-color: var(--pro-submenu-dot-hover);
}

/* User Profile Section */
.theme-professional .sidebar-user-profile {
    background: var(--pro-sidebar-header-bg);
    border-bottom-color: var(--pro-sidebar-border);
}

.theme-professional .sidebar-user-avatar {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.theme-professional .sidebar-user-avatar:hover {
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.5);
}

.theme-professional .sidebar-user-details h6 {
    color: var(--pro-sidebar-text);
}

.theme-professional .sidebar-user-details small {
    color: var(--pro-sidebar-text-muted);
}

/* Language Switcher */
.theme-professional .sidebar-language-switcher {
    border-top-color: var(--pro-sidebar-border);
}

.theme-professional .language-switcher .btn {
    background: var(--pro-lang-bg);
    border-color: var(--pro-lang-border);
    color: var(--pro-sidebar-text);
}

.theme-professional .language-switcher .btn:hover {
    background: var(--pro-lang-hover);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Scrollbar */
.theme-professional .user-sidebar::-webkit-scrollbar-track {
    background: var(--pro-scrollbar-track);
}

.theme-professional .user-sidebar::-webkit-scrollbar-thumb {
    background: var(--pro-scrollbar-thumb);
}

.theme-professional .user-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--pro-scrollbar-thumb-hover);
}

/* ========================================
   Professional Top Navigation/Header Styles
   ======================================== */
.theme-professional .user-header {
    background: var(--pro-header-bg);
    color: var(--pro-header-text);
    box-shadow: var(--pro-header-shadow);
    border-bottom: 1px solid var(--pro-header-border);
}

.theme-professional .page-title {
    color: var(--pro-header-text);
}

/* Sidebar Toggle Button */
.theme-professional .sidebar-toggle {
    color: var(--pro-header-text);
}

.theme-professional .sidebar-toggle:hover {
    background-color: var(--pro-header-hover);
    color: #ffffff;
}

.theme-professional .sidebar-toggle:hover::before {
    background-color: rgba(255, 255, 255, 0.15);
}

/* User Avatar in Header */
.theme-professional .user-avatar {
    background: var(--pro-avatar-bg);
}

.theme-professional .user-avatar:hover {
    box-shadow: var(--pro-avatar-hover-shadow);
}

/* Header Right Section - Notifications and User Info */
.theme-professional .header-right .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--pro-header-text);
}

.theme-professional .header-right .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

/* Notification Button - Professional Theme */
.theme-professional .notification-dropdown .notification-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-professional .notification-dropdown .notification-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.theme-professional .notification-dropdown .notification-btn i {
    color: #ffffff !important;
}

.theme-professional .notification-dropdown .notification-btn:hover i {
    color: #ffffff !important;
}

.theme-professional .header-right .user-info span {
    color: var(--pro-header-text);
}

/* Dropdown Menu in Header - inherits from body theme */
.theme-professional .header-right .dropdown-menu,
.theme-professional .dropdown-menu {
    border-color: var(--pro-header-border);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.theme-professional .header-right .dropdown-item:hover,
.theme-professional .dropdown-item:hover {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--pro-header-bg);
}

/* Modals inherit theme from body */
.theme-professional .modal-content {
    border-color: var(--pro-header-border);
}

.theme-professional .modal-header {
    background: var(--pro-header-bg);
    color: var(--pro-header-text);
    border-bottom-color: var(--pro-header-border);
}

.theme-professional .modal-footer {
    border-top-color: var(--pro-header-border);
}

/* Cards inherit theme */
.theme-professional .card {
    border-color: var(--pro-header-border);
}

.theme-professional .card-header {
    background-color: rgba(13, 148, 136, 0.05);
    border-bottom-color: var(--pro-header-border);
    color: var(--pro-header-bg);
}

.theme-professional .card-body {
    background-color: #ffffff;
}

/* Buttons inherit theme */
.theme-professional .btn-primary {
    background-color: var(--pro-header-bg);
    border-color: var(--pro-header-bg);
}

.theme-professional .btn-primary:hover {
    background-color: #0b7d75;
    border-color: #0b7d75;
}

.theme-professional .btn-outline-primary {
    border-color: var(--pro-header-bg);
    color: var(--pro-header-bg);
}

.theme-professional .btn-outline-primary:hover {
    background-color: var(--pro-header-bg);
    border-color: var(--pro-header-bg);
    color: #ffffff;
}

/* Notification Badge */
.theme-professional .notification-badge {
    background-color: #f59e0b;
    color: #ffffff;
}

/* Alerts inherit theme */
.theme-professional .alert-primary {
    background-color: rgba(13, 148, 136, 0.1);
    border-color: var(--pro-header-bg);
    color: var(--pro-header-bg);
}

.theme-professional .alert-info {
    background-color: rgba(20, 184, 166, 0.1);
    border-color: #14b8a6;
    color: #0f766e;
}

/* Tables inherit theme */
.theme-professional .table thead th {
    background-color: rgba(13, 148, 136, 0.05);
    color: var(--pro-header-bg);
    border-bottom-color: var(--pro-header-border);
}

.theme-professional .table tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.02);
}

/* Forms inherit theme */
.theme-professional .form-control:focus,
.theme-professional .form-select:focus {
    border-color: var(--pro-header-bg);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

.theme-professional .form-check-input:checked {
    background-color: var(--pro-header-bg);
    border-color: var(--pro-header-bg);
}

/* Badges inherit theme */
.theme-professional .badge-primary,
.theme-professional .badge.bg-primary {
    background-color: var(--pro-header-bg) !important;
}

.theme-professional .badge-info,
.theme-professional .badge.bg-info {
    background-color: #14b8a6 !important;
}

/* ========================================
   Accessibility & Focus States
   ======================================== */
.theme-professional .menu-link:focus {
    outline: 2px solid var(--pro-menu-active-border);
    outline-offset: 2px;
}

.theme-professional .sidebar-toggle:focus {
    outline: 2px solid var(--pro-menu-active-border);
    outline-offset: 2px;
}

.theme-professional .language-switcher .btn:focus {
    outline: 2px solid var(--pro-menu-active-border);
    outline-offset: 2px;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .theme-professional .user-sidebar {
        box-shadow: 0 0 25px rgba(15, 118, 110, 0.4);
    }
}

/* ========================================
   Smooth Transitions
   ======================================== */
.theme-professional .user-sidebar,
.theme-professional .user-header,
.theme-professional .menu-link,
.theme-professional .sidebar-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Overlay for Mobile
   ======================================== */
.theme-professional .sidebar-overlay {
    background-color: rgba(15, 118, 110, 0.6);
}
