/**
 * Rumvee Admin Dashboard Styles
 * Modern, clean admin interface
 */

:root {
    --primary-color: #40E0D0;
    --primary-dark: #00CED1;
    --secondary-color: #FF8C42;
    --success-color: #43e97b;
    --warning-color: #f5576c;
    --info-color: #4facfe;
    --dark: #1a1d2e;
    --dark-light: #252a3d;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-header .admin-logo {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Dashboard Layout */
.dashboard-container {
    position: relative;
    min-height: 100vh;
    display: flex;
}

/* ========================================
   DUAL SIDEBAR LAYOUT
   ======================================== */

/* Base Sidebar Styles */
.sidebar {
    background: var(--dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
    transition: width 0.3s ease, transform 0.3s ease;
}

/* When developer bar is visible (super admin only) */
body.dev-bar-visible .sidebar {
    height: calc(100vh - 60px);
}

/* Left Sidebar */
.sidebar-left {
    width: 260px;
    left: 0;
    padding-bottom: 0;
}

.sidebar-left.collapsed {
    width: 70px;
}

.sidebar-left.collapsed .nav-item span,
.sidebar-left.collapsed .admin-details,
.sidebar-left.collapsed .sidebar-logo,
.sidebar-left.collapsed .nav-divider {
    display: none;
}

.sidebar-left.collapsed .sidebar-header {
    justify-content: center;
    padding: 16px 10px;
}

.sidebar-left.collapsed .nav-item {
    justify-content: center;
    padding: 14px 10px;
}

.sidebar-left.collapsed .nav-item i {
    margin: 0;
    font-size: 20px;
}

.sidebar-left.collapsed .sidebar-footer {
    width: 70px;
    padding: 12px 10px;
}

.sidebar-left.collapsed .admin-info {
    justify-content: center;
}

.sidebar-left.collapsed .btn-logout {
    width: 100%;
    justify-content: center;
}

.sidebar-left.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

/* Right Sidebar - Chat */
.sidebar-right {
    width: 280px;
    right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.sidebar-right.collapsed {
    width: 60px;
}

.sidebar-right.collapsed .chat-sidebar-title span,
.sidebar-right.collapsed .online-header span,
.sidebar-right.collapsed .online-count,
.sidebar-right.collapsed .channels-header span,
.sidebar-right.collapsed .sidebar-channel-item span,
.sidebar-right.collapsed .channel-notification-badge,
.sidebar-right.collapsed .online-users-list,
.sidebar-right.collapsed .btn-new-channel span {
    display: none;
}

.sidebar-right.collapsed .sidebar-header {
    flex-direction: column;
    padding: 12px 8px;
    gap: 8px;
}

.sidebar-right.collapsed .chat-sidebar-title {
    flex-direction: column;
    gap: 0;
}

.sidebar-right.collapsed .sidebar-channel-item {
    justify-content: center;
    padding: 12px 8px;
}

.sidebar-right.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

.sidebar-right.collapsed .btn-new-channel {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
}

/* Sidebar Header - Aligns with Admin Bar */
.sidebar-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex: 0 0 73px;
    height: 73px;
    box-sizing: border-box;
}

.sidebar-left .sidebar-header {
    justify-content: space-between;
}

.sidebar-right .sidebar-header {
    justify-content: flex-start;
}

.sidebar-header i {
    font-size: 32px;
    color: var(--primary-color);
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.sidebar-header .sidebar-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Sidebar Collapse Button */
.sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.sidebar-collapse-btn i {
    font-size: 14px;
    color: inherit;
    transition: transform 0.3s;
}

/* Chat Sidebar Title */
.chat-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-sidebar-title i {
    font-size: 20px;
    color: var(--primary-color);
}

.chat-sidebar-title span {
    font-size: 16px;
    font-weight: 600;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--dark-light);
    color: var(--white);
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background: var(--dark-light);
    color: var(--white);
    border-left-color: var(--primary-color);
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

/* Navigation Divider */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

/* External Link Styling */
.nav-item.nav-external {
    color: rgba(255, 255, 255, 0.7);
    border-left-color: transparent;
}

.nav-item.nav-external:hover {
    color: var(--primary-color);
    background: var(--dark-light);
    border-left-color: var(--primary-color);
}

.nav-item.nav-external i {
    font-size: 16px;
}

/* ========================================
   RIGHT SIDEBAR - CHAT SECTIONS
   ======================================== */

/* Online Users Section */
.chat-online-section {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.online-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.online-dot {
    font-size: 8px;
    color: #43b581;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.online-count {
    margin-left: auto;
    background: rgba(67, 181, 129, 0.2);
    color: #43b581;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.online-users-list {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.online-users-list::-webkit-scrollbar {
    width: 4px;
}

.online-users-list::-webkit-scrollbar-track {
    background: transparent;
}

.online-users-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.online-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.online-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.online-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #38bca7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.online-user-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    border: 2px solid var(--dark);
}

/* Chat Channels Section */
.chat-channels-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-channels-section::-webkit-scrollbar {
    width: 4px;
}

.chat-channels-section::-webkit-scrollbar-track {
    background: transparent;
}

.chat-channels-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.channels-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.channels-header i {
    font-size: 12px;
    color: var(--primary-color);
}

.sidebar-chat-channels {
    padding: 0;
    display: block;
}

.sidebar-channel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 3px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
}

.sidebar-channel-item:hover {
    background: rgba(64, 224, 208, 0.1);
    color: var(--text-primary);
}

.sidebar-channel-item.active {
    background: rgba(64, 224, 208, 0.15);
    color: var(--primary-color);
}

.sidebar-channel-item i {
    font-size: 16px;
}

.channel-unread-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: var(--danger-color);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Footer - ALWAYS VISIBLE AT BOTTOM */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark);
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    transition: width 0.3s ease;
}

.sidebar-left.collapsed ~ .sidebar-footer,
.sidebar-left.collapsed .sidebar-footer {
    width: 70px;
}

/* Chat Sidebar Footer */
.chat-sidebar-footer {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--dark);
    margin-top: auto;
    flex-shrink: 0;
}

.btn-new-channel {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(64, 224, 208, 0.15);
    border: 1px dashed rgba(64, 224, 208, 0.4);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-new-channel:hover {
    background: rgba(64, 224, 208, 0.25);
    border-color: var(--primary-color);
}

.btn-new-channel i {
    font-size: 14px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.admin-info:hover {
    background: rgba(64, 224, 208, 0.1);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #38bca7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.admin-details {
    flex: 1;
    min-width: 0;
}

.admin-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    color: var(--white);
}

.admin-role {
    font-size: 12px;
    margin: 2px 0;
    color: var(--text-secondary);
}

.admin-status {
    font-size: 11px;
    color: #43b581;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-status i {
    font-size: 8px;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger-color);
    transform: translateY(-1px);
}

/* Global Chat Panel (Slides from Right) */
.chat-panel {
    position: fixed;
    top: 73px;
    right: -400px;
    width: 400px;
    height: calc(100vh - 73px);
    background: var(--dark);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

/* Chat panel when dev bar is visible */
body.dev-bar-visible .chat-panel {
    height: calc(100vh - 73px - 60px);
}

.chat-panel.active {
    right: 0;
}

.chat-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.chat-panel-header {
    height: 60px;
    padding: 0 20px;
    background: var(--dark-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-panel-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
}

.chat-panel-channel i {
    font-size: 20px;
    color: var(--primary-color);
}

.chat-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.chat-panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chat-panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--dark);
}

/* Chat Loading State */
.chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

.chat-loading i {
    font-size: 20px;
    color: var(--primary-color);
}

.chat-panel-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-panel-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.chat-panel-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.chat-panel-input {
    padding: 16px;
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
}

.chat-panel-input input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: var(--dark);
    color: var(--white);
    transition: border-color 0.15s;
}

.chat-panel-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--dark-light);
}

.chat-panel-input input:disabled {
    background: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}

.chat-panel-input button {
    padding: 11px 16px;
    border-radius: 8px;
}

/* Main Content - Adjusts for both sidebars */
.main-content {
    flex: 1;
    margin-left: 260px;
    margin-right: 280px;
    padding: 0;
    max-width: calc(100vw - 260px - 280px);
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: margin 0.3s ease, max-width 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* When developer bar is visible */
body.dev-bar-visible .main-content {
    min-height: calc(100vh - 60px);
    padding-bottom: 60px;
}

/* Main content adjustments when sidebars collapse */
.sidebar-left.collapsed ~ .main-content {
    margin-left: 70px;
    max-width: calc(100vw - 70px - 280px);
}

.sidebar-right.collapsed ~ .main-content,
body.right-sidebar-collapsed .main-content {
    margin-right: 60px;
    max-width: calc(100vw - 260px - 60px);
}

.sidebar-left.collapsed ~ .sidebar-right.collapsed ~ .main-content,
body.both-sidebars-collapsed .main-content {
    margin-left: 70px;
    margin-right: 60px;
    max-width: calc(100vw - 70px - 60px);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 20px 30px;
    background: var(--white);
    flex: 0 0 auto;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Content Section */
.content-section {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.content-section:first-child {
    margin-top: 0 !important;
}

#garageContent > .content-section:first-child,
#accountsContent > .content-section:first-child,
#admin-panelContent > .content-section:first-child {
    margin-top: 20px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
}

.content-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-confirmed {
    background: #d4edda;
    color: #155724;
}

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

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.badge-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-paid {
    background: #d4edda;
    color: #155724;
}

.badge-deposit {
    background: #fff3cd;
    color: #856404;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-success {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: var(--warning-color);
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input,
.filter-select,
.filter-input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 180px);
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: var(--bg-light);
    border-radius: 0 0 12px 12px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.btn-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Page Content */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
    padding: 20px 30px 30px 30px;
    margin: 0 !important;
    margin-top: 0 !important;
    flex: 1 1 auto;
    position: relative;
    width: 100%;
}

/* Sections using content-section children should have NO padding - content-section handles all spacing */
#garageContent.page-content.active,
#accountsContent.page-content.active,
#admin-panelContent.page-content.active {
    padding: 0 !important;
}

/* Calendar */
#bookingCalendar {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tour-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tour-card-header h3 {
    margin: 0;
    flex: 1;
}

.tour-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-icon.btn-edit {
    background: #FFF3E0;
    color: #F57C00;
}

.btn-icon.btn-edit:hover {
    background: #FFE0B2;
    transform: translateY(-2px);
}

.btn-icon.btn-delete {
    background: #FFEBEE;
    color: #D32F2F;
}

.btn-icon.btn-delete:hover {
    background: #FFCDD2;
    transform: translateY(-2px);
}

.btn-icon.btn-warning {
    background: #FFF3E0;
    color: #F57C00;
}

.btn-icon.btn-warning:hover {
    background: #FFE0B2;
    transform: translateY(-2px);
}

.btn-icon.btn-success {
    background: #E8F5E9;
    color: #43A047;
}

.btn-icon.btn-success:hover {
    background: #C8E6C9;
    transform: translateY(-2px);
}

/* Tour Toggle Button - Active/Inactive States */
.btn-icon.btn-toggle.active {
    background: #4CAF50;
    color: #FFFFFF;
}

.btn-icon.btn-toggle.active:hover {
    background: #45A049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.btn-icon.btn-toggle.inactive {
    background: #F44336;
    color: #FFFFFF;
}

.btn-icon.btn-toggle.inactive:hover {
    background: #E53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.btn-icon.btn-toggle i {
    color: inherit;
}

/* Dark mode toggle specific styling */
#darkModeToggle {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

#darkModeToggle:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

#darkModeToggle i {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#darkModeToggle .fa-moon {
    opacity: 1;
}

#darkModeToggle .fa-sun {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-mode #darkModeToggle .fa-moon {
    opacity: 0;
    transform: rotate(-180deg);
}

body.dark-mode #darkModeToggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px 24px;
    z-index: 10000;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-content i {
    font-size: 24px;
}

.toast-content span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-success .toast-content i {
    color: var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--warning-color);
}

.toast-error .toast-content i {
    color: var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

.toast-info .toast-content i {
    color: var(--info-color);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* Confirmation Modal Styling */
#confirmModal .modal-content {
    border-top: 4px solid var(--warning-color);
}

#confirmModal .modal-header h2 {
    color: var(--warning-color);
}

#confirmModal .modal-body p {
    color: var(--text-primary);
    margin: 0;
}

#confirmModal #confirmModalBtn {
    background: var(--warning-color);
    border-color: var(--warning-color);
}

#confirmModal #confirmModalBtn:hover {
    background: #d64456;
    border-color: #d64456;
}

.tour-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tour-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tour-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 13px;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Utilities */
.text-center {
    text-align: center;
}

.error-message {
    color: var(--warning-color);
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

.error-message.active {
    display: block;
}

/* Login Footer */
.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.return-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.return-link:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.return-link i {
    font-size: 12px;
}

.success-message {
    color: var(--success-color);
    font-size: 13px;
    margin-top: 10px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.role-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.role-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.role-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.role-header i {
    font-size: 24px;
}

.role-header h3 {
    margin: 0;
    font-size: 18px;
}

.role-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
}

.role-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permission-badge {
    background: var(--bg-light);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Admin Profile Card */
.admin-profile-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 36px;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.profile-info p {
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
}

.action-card:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-card i {
    font-size: 24px;
}

/* Activity Log */
.activity-log {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--bg-light);
}

.activity-item i {
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-details p {
    margin: 0;
    font-weight: 500;
}

.activity-details small {
    color: var(--text-secondary);
}

/* Admin Info Link Style */
a.admin-info {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

a.admin-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Settings Page Styles */
.settings-profile-card {
    display: flex;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.profile-avatar-large {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-large i {
    font-size: 50px;
    color: white;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.avatar-edit-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.profile-form {
    flex: 1;
}

.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.input-disabled {
    background: var(--bg-light) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed;
}

.settings-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.settings-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.settings-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Preference Items */
.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.preference-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preference-item:first-child {
    padding-top: 0;
}

.preference-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.preference-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Session Info */
.session-info-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.session-item:last-child {
    border-bottom: none;
}

.session-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.session-value {
    font-weight: 500;
    font-size: 14px;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Permissions Grid */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Color Input */
input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1002;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--dark-light);
}

.mobile-menu-toggle i {
    font-size: 20px;
}

/* Sidebar Overlay for Mobile - covers header when sidebar is open */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* When sidebar is open, hide the header bar on mobile */
body.sidebar-open .content-header {
    z-index: 50 !important; /* Drop below overlay when sidebar is open */
}

body.sidebar-open .mobile-menu-toggle {
    z-index: 1002; /* Keep menu toggle above everything */
}

/* ============================================
   PRODUCT MANAGER STYLES
   ============================================ */

/* Product Tabs */
.product-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.product-tab {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.product-tab i {
    font-size: 16px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-card-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.product-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.product-icon.merchandise {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.product-icon.addon {
    background: linear-gradient(135deg, #40E0D0 0%, #20B2AA 100%);
    color: var(--white);
}

.product-icon.bundle {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: var(--white);
}

.product-info {
    flex: 1;
}

.product-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.product-type-badge.merchandise {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.product-type-badge.addon {
    background: rgba(64, 224, 208, 0.15);
    color: #20B2AA;
}

.product-type-badge.bundle {
    background: rgba(245, 87, 108, 0.15);
    color: #f5576c;
}

.product-card-body {
    padding: 20px;
}

.product-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.product-features li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features li i {
    color: var(--success-color);
    font-size: 10px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-stock {
    font-size: 12px;
    color: var(--text-secondary);
}

.product-stock.low {
    color: var(--warning-color);
}

.product-stock.out {
    color: var(--danger-color);
}

.product-card-footer {
    padding: 15px 20px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.product-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.product-status .status-dot.active {
    background: var(--success-color);
}

.product-status .status-dot.inactive {
    background: var(--text-secondary);
}

.product-status .status-dot.out_of_stock {
    background: var(--danger-color);
}

.product-actions {
    display: flex;
    gap: 8px;
}

/* Modal large variant */
.modal-content.modal-large {
    max-width: 700px;
}

/* Bundle items list */
.bundle-items-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.bundle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.bundle-item:hover {
    background: var(--bg-light);
}

.bundle-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.bundle-item-info {
    flex: 1;
}

.bundle-item-name {
    font-size: 14px;
    font-weight: 500;
}

.bundle-item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .product-tab {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Calendar List View Styles */
.calendar-mobile {
    display: none;
}

.calendar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.calendar-mobile-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-mobile-header .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-mobile-header .btn-icon:hover {
    background: var(--primary-color);
    color: var(--white);
}

.calendar-mobile-list {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calendar-loading {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.calendar-day-group {
    border-bottom: 1px solid var(--border-color);
}

.calendar-day-group:last-child {
    border-bottom: none;
}

.calendar-day-header {
    padding: 12px 15px;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-day-header .day-date {
    color: var(--primary-color);
}

.calendar-event-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.calendar-event-item:last-child {
    border-bottom: none;
}

.calendar-event-time {
    min-width: 70px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-event-details {
    flex: 1;
}

.calendar-event-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.calendar-event-info {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-event-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.calendar-event-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.calendar-event-status.confirmed {
    background: rgba(67, 233, 123, 0.15);
    color: #28a745;
}

.calendar-event-status.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.calendar-event-status.cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.calendar-no-events {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.calendar-no-events i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.calendar-no-events p {
    margin: 0;
    font-size: 14px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Hide desktop calendar, show mobile list */
    .calendar-desktop {
        display: none !important;
    }
    
    .calendar-mobile {
        display: block !important;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Show overlay when sidebar is open */
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }
    
    .sidebar-overlay.active {
        pointer-events: auto;
    }
    
    /* Sidebar becomes slide-in overlay */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    /* Sidebar header adjustments */
    .sidebar-header {
        padding: 20px 15px;
    }
    
    .sidebar-header .sidebar-logo {
        height: 40px;
        max-width: 180px;
        object-fit: contain;
    }
    
    /* Sidebar nav adjustments */
    .sidebar-nav {
        padding: 15px 0;
    }
    
    .nav-item {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* Sidebar footer adjustments */
    .sidebar-footer {
        padding: 15px;
    }
    
    .admin-info {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .admin-name {
        font-size: 13px;
    }
    
    .admin-role {
        font-size: 11px;
    }
    
    .btn-logout {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* Main content takes full width on mobile */
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        width: 100%;
        padding: 70px 15px 15px 15px; /* Top padding for fixed header */
    }
    
    /* Header adjustments for mobile - fixed at top */
    .content-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
        padding-left: 70px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        min-height: 60px;
    }
    
    /* Add padding to page content to prevent header overlap */
    .page-content {
        padding-top: 80px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Page content with no padding still needs top spacing */
    #garageContent.page-content.active,
    #accountsContent.page-content.active,
    #admin-panelContent.page-content.active {
        padding-top: 70px !important;
    }
    
    .content-header h1 {
        font-size: 18px;
        flex: 1;
        margin: 0;
        padding: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-primary);
    }
    
    .header-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        flex-shrink: 0;
        width: auto !important;
    }
    
    /* Hide New Booking button on mobile - it's redundant */
    .header-actions #newBookingBtn {
        display: none !important;
    }
    
    /* Style dark mode toggle better for mobile */
    .header-actions #darkModeToggle {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    
    .header-actions .btn-primary {
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
    }
    
    /* Stats grid single column */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    /* Mobile padding removed - causing issues */
    
    /* Content sections */
    .content-section {
        padding: 15px;
        margin: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Table responsive */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
    
    /* Admin profile card */
    .admin-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-avatar {
        margin-bottom: 15px;
    }
    
    .profile-actions {
        margin-top: 15px;
    }
    
    /* Quick actions */
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-action-btn {
        padding: 15px;
    }
    
    /* Settings profile card */
    .settings-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-form {
        width: 100%;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    /* Roles grid */
    .roles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Permissions grid */
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    /* Calendar */
    #calendar {
        font-size: 12px;
    }
    
    /* Toast notifications */
    .toast-notification {
        left: 50% !important;
        right: auto !important;
        bottom: 20px !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        max-width: calc(100vw - 40px) !important;
        width: auto !important;
        min-width: 280px;
    }
    
    .toast-notification.show {
        transform: translateX(-50%) scale(1) !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .content-header {
        padding: 12px 15px;
        padding-left: 65px;
        flex-direction: row !important;
    }
    
    .content-header h1 {
        font-size: 16px;
    }
    
    .page-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .content-section {
        padding: 12px;
        margin: 10px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-card h3 {
        font-size: 22px;
    }
    
    .stat-card p {
        font-size: 12px;
    }
}

/* =====================================================
   Product Image Upload Styles
   ===================================================== */

/* Image upload zone */
.product-image-upload {
    margin-top: 8px;
}

.image-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-light);
    margin-bottom: 15px;
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(64, 224, 208, 0.05);
}

.upload-placeholder {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-placeholder i {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.7;
}

.upload-placeholder span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-placeholder small {
    font-size: 12px;
    color: var(--text-muted);
}

/* Image preview gallery */
.image-preview-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.image-preview-item:first-child {
    border-color: var(--primary-color);
}

.image-preview-item:first-child::after {
    content: 'Main';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px 0;
    font-weight: 600;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-preview-item:hover .remove-image {
    opacity: 1;
}

.image-preview-item .drag-handle {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    cursor: grab;
    transition: opacity 0.2s ease;
}

.image-preview-item:hover .drag-handle {
    opacity: 1;
}

/* Existing images gallery */
.existing-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.existing-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.existing-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.existing-image-item .image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    gap: 5px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.existing-image-item:hover .image-actions {
    opacity: 1;
}

.existing-image-item .image-actions button {
    padding: 5px 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.existing-image-item .btn-set-main {
    background: var(--primary-color);
    color: white;
}

.existing-image-item .btn-delete-image {
    background: var(--danger-color);
    color: white;
}

/* =====================================================
   Payments Panel Styles
   ===================================================== */

/* Stripe Status Indicator */
.stripe-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.stripe-status i {
    font-size: 10px;
}

.stripe-status.connected i {
    color: var(--success-color);
}

.stripe-status.connected.live i {
    color: #635bff;
}

.text-success { color: var(--success-color); }
.text-warning { color: #f5a623; }
.text-danger { color: var(--warning-color); }

/* Stripe Config Grid */
.stripe-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.config-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.config-card:hover {
    box-shadow: var(--shadow);
}

.config-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.config-info {
    flex: 1;
    min-width: 0;
}

.config-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.config-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Payment Stats Grid */
.payment-stats {
    margin-top: 20px;
}

/* Transaction Table Styles */
.transaction-id code {
    font-size: 11px;
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.amount {
    font-weight: 600;
    color: var(--success-color);
}

.amount.refund {
    color: var(--warning-color);
}

/* Badge Styles for Transactions */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-success {
    background: rgba(67, 233, 123, 0.15);
    color: #2da55d;
}

.badge-info {
    background: rgba(79, 172, 254, 0.15);
    color: #2d8fd5;
}

.badge-warning {
    background: rgba(245, 166, 35, 0.15);
    color: #c48820;
}

.badge-danger {
    background: rgba(245, 87, 108, 0.15);
    color: #c9444d;
}

.badge-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
}

/* Transaction Details Modal */
.transaction-details {
    padding: 20px;
}

.transaction-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.transaction-details .detail-row:last-child {
    border-bottom: none;
}

.transaction-details label {
    font-weight: 500;
    color: var(--text-secondary);
}

.transaction-details .amount {
    font-size: 18px;
}

/* Button Small Variant */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state small {
    font-size: 13px;
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--text-secondary);
}

/* Filter Input for Dates */
.filter-input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    transition: all 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

/* Responsive Payments Panel */
@media (max-width: 768px) {
    .stripe-config-grid {
        grid-template-columns: 1fr;
    }
    
    .config-card {
        flex-direction: column;
        text-align: center;
    }
    
    .config-info {
        text-align: center;
    }
    
    .filters-bar {
        flex-wrap: wrap;
    }
    
    .filter-input {
        width: 100%;
    }
}

/* =====================================================
   Employee Management Styles - Discord-Style
   ===================================================== */

/* Employee Tabs */
.employee-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--border-color);
    padding: 0 20px;
    background: var(--white);
}

.employee-tab {
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    top: 2px;
}

.employee-tab:hover {
    color: var(--text-primary);
    background: rgba(64, 224, 208, 0.05);
}

.employee-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.employee-tab-content {
    display: none;
    height: calc(100vh - 200px);
    overflow: hidden;
}

.employee-tab-content.active {
    display: block;
}

/* ============================================
   DISCORD-STYLE CHAT HOMEROOM
============================================ */

.employee-homeroom {
    display: flex;
    height: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

/* Employee Sidebar */
.employee-sidebar {
    width: 240px;
    background: #2c2f33;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.employee-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.employee-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.employee-sidebar-title i {
    color: var(--primary-color);
}

.employee-sidebar-subtitle {
    font-size: 11px;
    color: #8e9297;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Channel Groups */
.channels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.chat-channels-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 400px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-channels-container::-webkit-scrollbar {
    width: 4px;
}

.chat-channels-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-channels-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.channel-group {
    padding: 16px 8px;
}

.channel-group-header {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #8e9297;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color 0.2s;
}

.channel-group-header:hover {
    color: #dcddde;
}

.channel-group-header i {
    font-size: 10px;
}

.channel-list {
    margin-top: 4px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin: 2px 0;
    font-size: 15px;
    color: #8e9297;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.channel-item:hover {
    background: rgba(79, 84, 92, 0.4);
    color: #dcddde;
}

.channel-item.active {
    background: rgba(79, 84, 92, 0.6);
    color: #ffffff;
}

.channel-item i {
    font-size: 18px;
    opacity: 0.8;
}

.channel-item.active i {
    opacity: 1;
    color: var(--primary-color);
}

/* Sidebar User Section */
.employee-sidebar-user {
    margin-top: auto;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #38bca7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-user-status {
    font-size: 11px;
    color: #43b581;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sidebar-user-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
}

.sidebar-user-actions {
    display: flex;
    gap: 4px;
}

.sidebar-user-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #8e9297;
    cursor: pointer;
    transition: all 0.15s;
}

.sidebar-user-action:hover {
    background: rgba(79, 84, 92, 0.4);
    color: #dcddde;
}

/* ============================================
   CHAT MAIN AREA - Discord Style
============================================ */

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
}

/* Chat Header */
.chat-header {
    height: 48px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e3e5e8;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.chat-header-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: #23272a;
}

.chat-header-channel i {
    font-size: 20px;
    color: #8e9297;
}

.chat-header-divider {
    width: 1px;
    height: 24px;
    background: #e3e5e8;
}

.chat-header-topic {
    font-size: 14px;
    color: #72767d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-header-action {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #72767d;
    cursor: pointer;
    transition: all 0.15s;
}

.chat-header-action:hover {
    color: #23272a;
}

.chat-header-action i {
    font-size: 20px;
}

/* Chat Messages Area - Discord Style */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
}

.chat-messages::-webkit-scrollbar {
    width: 16px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #202225;
    border: 4px solid #ffffff;
    border-radius: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Chat Empty State */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #72767d;
}

.chat-empty i {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.chat-empty p {
    font-size: 16px;
}

/* Message Group (Discord style) */
.message-group {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    transition: background 0.05s;
}

.message-group:hover {
    background: rgba(255, 255, 255, 0.05);
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #38bca7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.message-author {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.message-timestamp {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.message-text {
    font-size: 15px;
    line-height: 1.375;
    color: rgba(255, 255, 255, 0.85);
    word-wrap: break-word;
}

.message-text p {
    margin: 0 0 8px 0;
}

.message-text p:last-child {
    margin-bottom: 0;
}

/* Chat Input */
.chat-input-container {
    padding: 16px;
    background: #ffffff;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e3e5e8;
}

.chat-input-container input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    color: #23272a;
    transition: border-color 0.15s;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input-container input:disabled {
    background: #f2f3f5;
    cursor: not-allowed;
}

.chat-input-container button {
    padding: 11px 16px;
    border-radius: 8px;
}

/* ========================================
   CHAT SYSTEM ENHANCEMENTS
   ======================================== */

/* Message Type Colors */
.message-type-normal {
    background: transparent;
}

.message-type-system {
    background: rgba(114, 137, 218, 0.08);
    border-left: 3px solid #7289da;
    padding-left: 12px;
    margin-left: -12px;
}

.message-type-announcement {
    background: rgba(250, 166, 26, 0.08);
    border-left: 3px solid #faa61a;
    padding-left: 12px;
    margin-left: -12px;
}

.message-type-alert {
    background: rgba(240, 71, 71, 0.08);
    border-left: 3px solid #f04747;
    padding-left: 12px;
    margin-left: -12px;
}

.message-type-success {
    background: rgba(67, 181, 129, 0.08);
    border-left: 3px solid #43b581;
    padding-left: 12px;
    margin-left: -12px;
}

/* System Message Styling */
.system-message {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.05), rgba(114, 137, 218, 0.1));
    border-radius: 8px;
    padding: 12px !important;
    margin: 8px 0;
}

.system-message .message-avatar.system {
    background: linear-gradient(135deg, #7289da, #5b6eae);
}

.system-message .system-author {
    color: #7289da;
}

.welcome-message {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.05), rgba(64, 224, 208, 0.12));
    border: 1px solid rgba(64, 224, 208, 0.2);
}

/* Pinned Message Styling */
.pinned-message {
    background: rgba(250, 166, 26, 0.06);
    border-left: 3px solid #faa61a;
    padding-left: 12px;
    margin-left: -12px;
}

.pinned-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #faa61a;
    background: rgba(250, 166, 26, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
}

.pinned-indicator i {
    font-size: 10px;
}

/* Pinned Messages Bar */
#pinnedMessagesBar {
    background: rgba(250, 166, 26, 0.08);
    border-bottom: 1px solid rgba(250, 166, 26, 0.2);
    padding: 8px 16px;
}

.pinned-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #faa61a;
}

.pinned-header i {
    font-size: 12px;
}

.pinned-expand-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #72767d;
    cursor: pointer;
    padding: 4px;
}

.pinned-messages-list {
    margin-top: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.pinned-message-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.pinned-message-content {
    font-size: 13px;
    color: #2e3338;
}

.pinned-message-meta {
    font-size: 11px;
    color: #72767d;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unpin-btn {
    background: none;
    border: none;
    color: #f04747;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 12px;
}

.unpin-btn:hover {
    background: rgba(240, 71, 71, 0.1);
    border-radius: 4px;
}

/* Message Actions */
.message-actions {
    display: none;
    margin-left: auto;
    gap: 4px;
}

.message-group:hover .message-actions {
    display: flex;
}

.msg-action-btn {
    background: none;
    border: none;
    color: #72767d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.msg-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2e3338;
}

.msg-action-btn i.pinned {
    color: #faa61a;
}

/* @Mention Highlighting */
.mention-highlight {
    background: rgba(114, 137, 218, 0.2);
    color: #7289da;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Mention Suggestions Dropdown */
.mention-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-bottom: 8px;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.mention-item:hover,
.mention-item.active {
    background: rgba(64, 224, 208, 0.1);
}

.mention-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #38bca7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.mention-info {
    flex: 1;
}

.mention-name {
    font-size: 14px;
    font-weight: 600;
    color: #23272a;
    display: block;
}

.mention-role {
    font-size: 12px;
    color: #72767d;
}

/* Channel Notification Badge */
.channel-notification-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: #f04747;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-badge {
    margin-left: auto;
    font-size: 12px;
    color: #faa61a;
}

/* Online Status Indicators */
.online-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.online-status.online {
    background: #43b581;
    box-shadow: 0 0 4px #43b581;
}

.online-status.away {
    background: #faa61a;
}

.online-status.offline {
    background: #747f8d;
}

/* Chat Settings Section */
.chat-settings-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.chat-settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-settings-section h3 i {
    color: var(--primary-color);
}

.chat-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.chat-setting-item:last-child {
    border-bottom: none;
}

.chat-setting-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-setting-label span:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.chat-setting-label span:last-child {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Admin Chat Permissions Panel */
.chat-permissions-panel {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.chat-permissions-panel h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.permission-user-list {
    max-height: 300px;
    overflow-y: auto;
}

.permission-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.5);
}

.permission-user-item:hover {
    background: rgba(64, 224, 208, 0.05);
}

.permission-checkboxes {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.permission-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Employee Info Badge */
.employee-info-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Timecard Controls */
.timecard-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 30px;
}

.clock-display {
    text-align: center;
}

.clock-time {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.clock-date {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.clock-buttons {
    display: flex;
    gap: 16px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}

.active-clock-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(67, 233, 123, 0.1);
    border-radius: 8px;
    text-align: center;
    color: var(--text-primary);
}

.active-clock-info strong {
    color: var(--success-color);
}

.clock-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-success {
    background: rgba(67, 233, 123, 0.15);
    color: #2da55d;
}

.status-badge-secondary {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.status-badge-info {
    background: rgba(79, 172, 254, 0.15);
    color: #2d8fd5;
}

.status-badge-warning {
    background: rgba(245, 166, 35, 0.15);
    color: #c48820;
}

/* Timecard History */
.timecard-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Clock Out Modal */
.clock-out-summary {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.clock-out-summary p {
    margin: 8px 0;
    font-size: 16px;
}

.clock-out-summary strong {
    color: var(--primary-color);
    font-size: 18px;
}

/* Schedule */
.schedule-period-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.schedule-period-selector span {
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

.schedule-calendar {
    margin-top: 20px;
}

.schedule-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.schedule-day {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-day-header {
    padding: 12px;
    background: var(--bg-light);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.schedule-day-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.schedule-day-date {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.schedule-day-shifts {
    padding: 12px;
    min-height: 100px;
}

.schedule-shift-card {
    padding: 10px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid var(--primary-color);
}

.schedule-shift-card:last-child {
    margin-bottom: 0;
}

.shift-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.shift-position {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.schedule-no-shift {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Schedule Builder */
.schedule-builder-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.week-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.week-selector span {
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

.schedule-builder-grid {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
}

/* Garage CSS removed - using standard content-section styles */

/* Chart Container */
.chart-container {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-container h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive Grid for Stats */
.stats-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.stats-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Employee Chat Styles */
.employee-chat-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    height: 600px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.chat-sidebar {
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-header h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}

.chat-channels-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chat-channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.chat-channel-item:hover {
    background: rgba(64, 224, 208, 0.1);
    color: var(--primary-color);
}

.chat-channel-item.active {
    background: rgba(64, 224, 208, 0.2);
    color: var(--primary-color);
    font-weight: 600;
}

.chat-channel-name {
    flex: 1;
    font-size: 14px;
}

.channel-lock {
    font-size: 10px;
    opacity: 0.6;
}

.chat-no-channels {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.chat-no-channels i {
    font-size: 36px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-no-channels p {
    margin-bottom: 16px;
}

.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

.chat-channel-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.chat-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.chat-empty p {
    font-size: 16px;
    margin-bottom: 4px;
}

.chat-empty small {
    font-size: 13px;
    opacity: 0.7;
}

.chat-message {
    display: flex;
    gap: 12px;
}

.chat-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.chat-message-content {
    flex: 1;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.chat-message-author {
    font-weight: 600;
    color: var(--text-primary);
}

.chat-message-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.chat-edited-badge {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
}

.chat-message-text {
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chat-attachment {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.chat-attachment:hover {
    background: var(--primary-color);
    color: white;
}

.chat-input-container {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
    display: flex;
    gap: 12px;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

.chat-input-container button {
    padding: 12px 20px;
}

/* Notifications List */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    gap: 16px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.info { background: rgba(79, 172, 254, 0.15); color: #2d8fd5; }
.notification-icon.success { background: rgba(67, 233, 123, 0.15); color: #2da55d; }
.notification-icon.warning { background: rgba(245, 166, 35, 0.15); color: #c48820; }
.notification-icon.alert { background: rgba(245, 87, 108, 0.15); color: #c9444d; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Stats Grid Variants */
.stats-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.stats-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Modal Sizes */
.modal-small .modal-content {
    max-width: 500px;
}

.modal-large .modal-content {
    max-width: 900px;
}

/* Responsive Employee Management */
@media (max-width: 1200px) {
    .schedule-week-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .employee-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .employee-tab {
        white-space: nowrap;
    }
    
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .schedule-week-grid {
        grid-template-columns: 1fr;
    }
    
    .employee-chat-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .chat-sidebar {
        display: none;
    }
    
    .sidebar-right.active .chat-sidebar {
        display: flex !important;
    }
    
    .schedule-builder-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .week-selector {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .clock-time {
        font-size: 36px;
    }
    
    .clock-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .clock-buttons button {
        width: 100%;
    }
    
    .stats-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MOBILE CHAT TOGGLE & RIGHT SIDEBAR
   ======================================== */

/* Mobile Chat Toggle Button */
.mobile-chat-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #38bca7);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(64, 224, 208, 0.4);
    z-index: 90;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(64, 224, 208, 0.5);
}

.mobile-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #f04747;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Sidebar Overlay (Mobile) */
.chat-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.chat-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   RESPONSIVE DUAL SIDEBAR LAYOUT
   ======================================== */

/* Tablet - Hide right sidebar, show mobile toggle */
@media (max-width: 1200px) {
    .sidebar-right {
        display: none !important;
        transform: translateX(100%) !important;
        z-index: 101;
        position: fixed !important;
    }
    
    .sidebar-right.active {
        display: flex !important;
        transform: none !important;
        right: 0 !important;
    }
    
    .mobile-chat-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .chat-sidebar-overlay {
        display: block;
    }
    
    .main-content {
        margin-right: 0;
        max-width: calc(100vw - 260px);
    }
    
    .sidebar-left.collapsed ~ .main-content {
        margin-left: 70px;
        max-width: calc(100vw - 70px);
    }
}

/* Mobile - Both sidebars hidden by default */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .dashboard-container {
        overflow-x: hidden !important;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        padding: 16px;
        position: relative;
    }
    
    .sidebar-left {
        transform: translateX(-100%) !important;
        z-index: 1002 !important;
        width: 280px;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
    }
    
    .sidebar-left.open,
    .sidebar-left.active {
        transform: translateX(0) !important;
    }
    
    .sidebar-right {
        display: none !important;
        width: 100%;
        max-width: 320px;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        z-index: 1002 !important;
        flex-direction: column !important;
        height: 100vh !important;
    }
    
    .sidebar-right.active {
        display: flex !important;
        right: 0 !important;
        transform: none !important;
        left: auto !important;
    }
    
    .sidebar-right.active .chat-online-section,
    .sidebar-right.active .chat-channels-section,
    .sidebar-right.active .chat-sidebar-footer,
    .sidebar-right.active .sidebar-header {
        display: flex !important;
    }
    
    .sidebar-footer {
        width: 280px;
        position: relative;
        bottom: 0;
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
        z-index: 1001 !important;
    }
    
    .chat-sidebar-overlay {
        z-index: 1001 !important;
    }
    
    .chat-panel-overlay {
        z-index: 1002 !important; /* Below chat-panel but above everything else */
    }
    
    .main-content {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        padding: 0 16px;
    }
    
    .content-header {
        padding: 16px;
        padding-left: 60px;
    }
    
    .content-header h1 {
        font-size: 22px;
    }
    
    .chat-panel {
        width: 100%;
        max-width: 100%;
        z-index: 1003 !important; /* Above sidebars (1002) */
        right: -100% !important; /* Start offscreen */
    }
    
    .chat-panel.active {
        right: 0 !important; /* Slide in over everything */
    }
    
    /* Make close button more prominent on mobile */
    .chat-panel-close {
        width: 44px;
        height: 44px;
        background: var(--primary-color) !important;
        font-size: 20px;
    }
    
    .chat-panel-close:hover {
        background: var(--primary-dark) !important;
        transform: scale(1);
    }
    
    .chat-panel-header {
        padding: 0 16px;
        height: 56px;
    }
    
    .mobile-chat-toggle {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Collapse buttons act as close buttons on mobile */
    .sidebar-collapse-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-left .sidebar-collapse-btn i {
        transform: rotate(0) !important;
    }
    
    .sidebar-right .sidebar-collapse-btn i {
        transform: rotate(0) !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .sidebar-left,
    .sidebar-right {
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar-footer {
        width: 100%;
    }
    
    .content-header {
        flex-direction: row !important;
        gap: 8px;
        align-items: center;
    }
    
    .header-actions {
        width: auto !important;
        flex-direction: row !important;
    }
    
    .header-actions .btn-primary {
        flex: 0;
    }
}
