/* ===== SHARED UTILITY STYLES ===== */
/* Common styles used across different user types */

/* ===== UNIVERSAL SIDEBAR STYLING ===== */
/* Modern sidebar design for all user roles */

/* Brand Color Variables for Sidebar */
:root {
    /* Primary Colors - Official NoviStage Palette */
    --novistage-navy: #1a1640;      /* Pantone 276 C */
    --novistage-red: #e53e3e;       /* Pantone 1788 C */
    --novistage-orange: #ff6b35;    /* Pantone 716 C */
    
    /* Secondary Colors */
    --novistage-green: #68d391;     /* Pantone 376 C */
    --novistage-cyan: #4fd1c7;      /* Pantone 2995 C */
    
    /* Modern Dashboard Colors */
    --sidebar-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --hover-bg: #f1f5f9;
    
    /* Typography */
    --font-primary: 'Gotham', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Modern Light Sidebar */
#sidebarMenu {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--border-color) !important;
    box-shadow: none;
    min-height: 100vh;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 320px;
    padding-top: 80px;
    transition: all 0.3s ease;
}

/* Sidebar Navigation Items */
#sidebarMenu .nav-link {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
    font-weight: 500;
    padding: 0.75rem 0.75rem;
    margin: 0.25rem 0.75rem 0.25rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(320px - 3rem);
    box-sizing: border-box;
}

#sidebarMenu .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--hover-bg) !important;
}

/* Active Navigation States */
#sidebarMenu .nav-link.active {
    color: var(--novistage-orange) !important;
    background: rgba(255, 107, 53, 0.1) !important;
    font-weight: 600;
}

#sidebarMenu .nav-link.active i {
    color: var(--novistage-orange) !important;
}

/* Dropdown Toggle Styling */
#sidebarMenu .dropdown-toggle::after {
    border: none !important;
    content: '\f107' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

#sidebarMenu .dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Submenu Styling */
#sidebarMenu .collapse {
    background: transparent;
    margin: 0 1rem;
}

#sidebarMenu .collapse .nav-link {
    padding: 0.5rem 0.5rem 0.5rem 2.25rem;
    margin: 0.125rem 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(320px - 4rem);
    box-sizing: border-box;
}

#sidebarMenu .collapse .nav-link.active {
    background: rgba(255, 107, 53, 0.1) !important;
    color: var(--novistage-orange) !important;
}

/* Icons Styling */
#sidebarMenu .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

#sidebarMenu .nav-link:hover i {
    color: var(--text-primary);
}

/* Universal Main Content Adjustment */
.main-content,
.admin-main-content {
    margin-left: 340px;
    transition: margin-left 0.3s ease;
}

/* Mobile Navigation Integration */
@media (max-width: 992px) {
    /* Hide desktop sidebar on mobile */
    #sidebarMenu {
        display: none !important;
    }
    
    /* Adjust main content for mobile */
    .main-content,
    .admin-main-content,
    main.col-md-9,
    main.col-lg-10,
    main.col-md-9.col-lg-10 {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-top: 1rem;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile sidebar in navbar collapse */
    .navbar-collapse .mobile-sidebar {
        display: block;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-sidebar .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        margin: 0.25rem 0;
        transition: all 0.2s ease;
    }
    
    .mobile-sidebar .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
    
    .mobile-sidebar .nav-link.active {
        background: rgba(255, 107, 53, 0.2);
        color: var(--novistage-orange) !important;
    }
    
    .mobile-sidebar .nav-link i {
        width: 20px;
        margin-right: 0.75rem;
    }
    
    /* Mobile Submenu Styling */
    .mobile-submenu {
        margin-bottom: 0.5rem;
    }
    
    .mobile-sidebar .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
    }
    
    .mobile-sidebar .submenu-toggle i.fa-chevron-down {
        width: auto;
        margin-right: 0;
        margin-left: auto;
        transition: transform 0.2s ease;
        font-size: 0.75rem;
    }
    
    .mobile-sidebar .submenu-toggle[aria-expanded="true"] i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .mobile-sidebar .submenu-item {
        padding-left: 2.5rem !important;
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.8) !important;
        margin: 0.125rem 0;
    }
    
    .mobile-sidebar .submenu-item:hover {
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .mobile-sidebar .submenu-item.active {
        background: rgba(255, 107, 53, 0.15);
        color: var(--novistage-orange) !important;
    }
}

/* Desktop: Hide mobile sidebar */
@media (min-width: 993px) {
    .mobile-sidebar {
        display: none !important;
    }
}

/* ===== CARD BORDER UTILITIES ===== */

.card.border-left-primary {
    border-left: 0.25rem solid #211d3e !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(33, 29, 62, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.border-left-success {
    border-left: 0.25rem solid #55cc38 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(85, 204, 56, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.border-left-info {
    border-left: 0.25rem solid #00aff0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(0, 175, 240, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.border-left-warning {
    border-left: 0.25rem solid #ff851c !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(255, 133, 28, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.border-left-danger {
    border-left: 0.25rem solid #ff2938 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(255, 41, 56, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.border-left-secondary {
    border-left: 0.25rem solid #7746c0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(119, 70, 192, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.border-left-dark {
    border-left: 0.25rem solid #211d3e !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(33, 29, 62, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card.border-left-light {
    border-left: 0.25rem solid #e9ecef !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Card hover effects */
.card.border-left-primary:hover,
.card.border-left-success:hover,
.card.border-left-info:hover,
.card.border-left-warning:hover,
.card.border-left-danger:hover,
.card.border-left-secondary:hover,
.card.border-left-dark:hover,
.card.border-left-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(33, 29, 62, 0.12);
}

/* ===== TEXT COLOR UTILITIES ===== */

.text-gray-800 {
    color: #211d3e !important;
    font-weight: 600;
}

.text-gray-300 {
    color: #9ca3af !important;
}

.text-primary {
    color: #211d3e !important;
}

.text-success {
    color: #55cc38 !important;
}

.text-info {
    color: #00aff0 !important;
}

.text-warning {
    color: #ff851c !important;
}

.text-danger {
    color: #ff2938 !important;
}

/* ===== AVATAR UTILITIES ===== */

.avatar-sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-md {
    width: 3rem;
    height: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.avatar-lg {
    width: 4rem;
    height: 4rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ===== STATUS BADGE UTILITIES ===== */

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.35rem;
}

.status-active {
    background-color: #d1edff;
    color: #0c5460;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* ===== BUTTON UTILITIES ===== */

.btn-primary:hover {
    background: #1a1640 !important;
    border-color: #1a1640 !important;
    transform: translateY(-1px);
}

.btn-success {
    background: #55cc38 !important;
    border-color: #55cc38 !important;
}

.btn-success:hover {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    transform: translateY(-1px);
}

.btn-info {
    background: #00aff0 !important;
    border-color: #00aff0 !important;
}

.btn-info:hover {
    background: #0288d1 !important;
    border-color: #0288d1 !important;
    transform: translateY(-1px);
}

.btn-warning {
    background: #ff851c !important;
    border-color: #ff851c !important;
}

.btn-warning:hover {
    background: #e55a2b !important;
    border-color: #e55a2b !important;
    transform: translateY(-1px);
}

/* ===== ACTION BUTTON UTILITIES ===== */

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #f8f9fa !important;
    color: #495057 !important;
}

.action-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ===== DROPDOWN UTILITIES ===== */

.dropdown-menu {
    border: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.35rem;
    min-width: 180px;
    z-index: 1050;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fc;
    color: #5a5c69;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e3e6f0;
}
