/* Layout Styles */

/* App Layout Styles */
.sidebar {
    transition: all 0.3s ease-in-out;
}

.main-content {
    transition: margin-left 0.3s ease-in-out;
}

/* Toggle button styling */
#toggle-sidebar {
    right: -25px;
    height: 27px;
    width: 27px;
    border: 2px solid #3b82f6 !important;
    background: #eff6ff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    top: 19px;
}

#toggle-sidebar:hover {
    background: #dbeafe !important;
    border-color: #2563eb !important;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

#toggle-icon {
    font-size: 18px !important;
    transition: transform 0.3s ease-in-out;
    color: #2563eb !important;
    font-weight: bold;
}

/* Ensure the button is visible on desktop */
@media (min-width: 768px) {
    #toggle-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Force visibility for debugging */
#toggle-sidebar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Collapsed sidebar styles */
#sidebar.collapsed .sidebar-text,
.sidebar.collapsed .sidebar-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

#sidebar.collapsed .sidebar-header h1,
.sidebar.collapsed .sidebar-header h1 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Show small logo when collapsed */
#sidebar.collapsed .sidebar-logo-collapsed,
.sidebar.collapsed .sidebar-logo-collapsed {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide small logo when expanded */
.sidebar-logo-collapsed {
    display: none !important;
}

#sidebar.collapsed .user-info,
.sidebar.collapsed .user-info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Tooltipster Custom Styling - Design System Colors */
.tooltipster-light {
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important; /* gray-300 */
    background: #ffffff !important;
    color: #374151 !important; /* gray-700 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    max-width: 300px !important;
}

.tooltipster-light .tooltipster-content {
    padding: 12px 16px !important;
    font-weight: 400 !important;
    color: #374151 !important; /* gray-700 */
    background: #ffffff !important;
}

/* Override any default tooltipster background and borders */
.tooltipster-base {
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.tooltipster-box {
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* Ensure content area has proper background */
.tooltipster-content {
    background: #ffffff !important;
    color: #374151 !important;
    border: none !important;
    outline: none !important;
}

/* Remove any default tooltipster borders */
.tooltipster-base,
.tooltipster-box,
.tooltipster-content,
.tooltipster-arrow {
    border: none !important;
    outline: none !important;
}

/* Override any default tooltipster styling */
.tooltipster {
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

.tooltipster-light .tooltipster-arrow {
    width: 0 !important;
    height: 0 !important;
}

.tooltipster-light .tooltipster-arrow-border {
    border: 8px solid transparent !important;
}

.tooltipster-light .tooltipster-arrow-background {
    border: 8px solid transparent !important;
}

/* Top arrow */
.tooltipster-light.tooltipster-top .tooltipster-arrow-border {
    border-top-color: #d1d5db !important; /* gray-300 */
}

.tooltipster-light.tooltipster-top .tooltipster-arrow-background {
    border-top-color: #ffffff !important;
}

/* Bottom arrow */
.tooltipster-light.tooltipster-bottom .tooltipster-arrow-border {
    border-bottom-color: #d1d5db !important; /* gray-300 */
}

.tooltipster-light.tooltipster-bottom .tooltipster-arrow-background {
    border-bottom-color: #ffffff !important;
}

/* Left arrow */
.tooltipster-light.tooltipster-left .tooltipster-arrow-border {
    border-left-color: #d1d5db !important; /* gray-300 */
}

.tooltipster-light.tooltipster-left .tooltipster-arrow-background {
    border-left-color: #ffffff !important;
}

/* Right arrow */
.tooltipster-light.tooltipster-right .tooltipster-arrow-border {
    border-right-color: #d1d5db !important; /* gray-300 */
}

.tooltipster-light.tooltipster-right .tooltipster-arrow-background {
    border-right-color: #ffffff !important;
}

/* Hover state for interactive tooltips */
.tooltipster-light:hover {
    border-color: #2563eb !important; /* blue-600 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Success tooltip variant */
.tooltipster-success {
    border-color: #16a34a !important; /* green-600 */
    background: #f0fdf4 !important; /* green-50 */
    color: #166534 !important; /* green-800 */
}

.tooltipster-success .tooltipster-content {
    background: #f0fdf4 !important; /* green-50 */
    color: #166534 !important; /* green-800 */
}

.tooltipster-success .tooltipster-arrow-border {
    border-top-color: #16a34a !important; /* green-600 */
}

.tooltipster-success .tooltipster-arrow-background {
    border-top-color: #f0fdf4 !important; /* green-50 */
}

/* Error tooltip variant */
.tooltipster-error {
    border-color: #dc2626 !important; /* red-600 */
    background: #fef2f2 !important; /* red-50 */
    color: #991b1b !important; /* red-800 */
}

.tooltipster-error .tooltipster-content {
    background: #fef2f2 !important; /* red-50 */
    color: #991b1b !important; /* red-800 */
}

.tooltipster-error .tooltipster-arrow-border {
    border-top-color: #dc2626 !important; /* red-600 */
}

.tooltipster-error .tooltipster-arrow-background {
    border-top-color: #fef2f2 !important; /* red-50 */
}

/* Warning tooltip variant */
.tooltipster-warning {
    border-color: #ca8a04 !important; /* yellow-600 */
    background: #fefce8 !important; /* yellow-50 */
    color: #92400e !important; /* yellow-800 */
}

.tooltipster-warning .tooltipster-content {
    background: #fefce8 !important; /* yellow-50 */
    color: #92400e !important; /* yellow-800 */
}

.tooltipster-warning .tooltipster-arrow-border {
    border-top-color: #ca8a04 !important; /* yellow-600 */
}

.tooltipster-warning .tooltipster-arrow-background {
    border-top-color: #fefce8 !important; /* yellow-50 */
}

/* Info tooltip variant */
.tooltipster-info {
    border-color: #2563eb !important; /* blue-600 */
    background: #eff6ff !important; /* blue-50 */
    color: #1e40af !important; /* blue-800 */
}

.tooltipster-info .tooltipster-content {
    background: #eff6ff !important; /* blue-50 */
    color: #1e40af !important; /* blue-800 */
}

.tooltipster-info .tooltipster-arrow-border {
    border-top-color: #2563eb !important; /* blue-600 */
}

.tooltipster-info .tooltipster-arrow-background {
    border-top-color: #eff6ff !important; /* blue-50 */
}

#sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-link {
    justify-content: center !important;
    padding: 0.75rem !important;
}

#sidebar.collapsed .nav-link i,
.sidebar.collapsed .nav-link i {
    margin-right: 0 !important;
    font-size: 1.25rem !important;
}

#sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-link {
    position: relative;
}

#sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-link:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#sidebar.collapsed .nav-divider,
.sidebar.collapsed .nav-divider {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Additional specificity for text elements */
#sidebar.collapsed span,
.sidebar.collapsed span {
    
}

#sidebar.collapsed p,
.sidebar.collapsed p {
    display: none !important;
}

/* Ensure sidebar transitions smoothly */
#sidebar {
    transition: width 0.3s ease-in-out;
}

.main-content {
    transition: margin-left 0.3s ease-in-out;
}

/* Sidebar tooltip specific styling */
#sidebar.collapsed .tooltipster-base {
    z-index: 9999 !important;
}

#sidebar.collapsed .tooltipster-light {
    z-index: 9999 !important;
    position: absolute !important;
}

/* Ensure tooltips appear outside the collapsed sidebar */
#sidebar.collapsed .tooltipster-box {
    position: absolute !important;
    left: 100% !important;
    margin-left: 8px !important;
}

/* Remove the CSS-only tooltip since we're using Tooltipster */
#sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-link:hover::after {
    display: none !important;
}

/* Mobile sidebar styles */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }
    
    #sidebar.show {
        transform: translateX(0);
    }
    
    /* On mobile, always show full sidebar when visible */
    #sidebar.show .sidebar-text,
    #sidebar.show .sidebar-header h1,
    #sidebar.show .user-info {
        display: block;
    }
    
    #sidebar.show .nav-link {
        justify-content: flex-start;
        padding: 0.5rem 0.75rem;
    }
    
    #sidebar.show .nav-link i {
        margin-right: 0.75rem;
        font-size: 1rem;
    }
}

.team-card { 
    transition: all 0.3s ease; 
}

.team-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.role-admin { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
}

.role-manager { 
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); 
}

.role-assistant { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); 
}

/* Portal Layout Styles */
/* Global Select2 styling to match the design across all pages */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    min-height: 42px !important;
    padding: 0.5rem 0.75rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    background-color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.5rem 0.75rem !important;
    color: #374151 !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background-color: #eff6ff !important;
    color: #1e40af !important;
}

.select2-container--bootstrap-5 .select2-search__field {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
}

.select2-container--bootstrap-5 .select2-search__field:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

/* Disabled state styling */
.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background-color: #f9fafb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Font Awesome fallback and icon styling */
.fas, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure icons are visible */
.fas::before, .fa::before {
    display: inline-block !important;
}

/* Auth Layout Styles */
.auth-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-container {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Landing Layout Styles */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.app-select{
    @apply select2-select w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300
}