/* Landing Page Styles */
.landing-page {
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.main-header h1 i {
    margin-right: 10px;
    color: #3498db;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 5px;
}

.nav-item {
    color: #bdc3c7;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: #3498db;
    color: white;
}

/* Category Navigation */
.category-nav {
    background: white;
    border-bottom: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 600;
}

.category-nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
}

.category-tab:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.category-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: #f8fdff;
}

/* Category-specific accent colors for active tabs */
.category-tab[data-category="overview"].active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.category-tab[data-category="inbound"].active {
    color: #9b59b6;
    border-bottom-color: #9b59b6;
    background: rgba(155, 89, 182, 0.05);
}

.category-tab[data-category="inventory"].active {
    color: #f39c12;
    border-bottom-color: #f39c12;
    background: rgba(243, 156, 18, 0.05);
}

.category-tab[data-category="outbound"].active {
    color: #27ae60;
    border-bottom-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.category-tab[data-category="shipping"].active {
    color: #17a2b8;
    border-bottom-color: #17a2b8;
    background: rgba(23, 162, 184, 0.05);
}

.category-tab[data-category="workforce"].active {
    color: #e67e22;
    border-bottom-color: #e67e22;
    background: rgba(230, 126, 34, 0.05);
}

.category-tab[data-category="equipment"].active {
    color: #6c757d;
    border-bottom-color: #6c757d;
    background: rgba(108, 117, 125, 0.05);
}

.category-tab[data-category="analytics"].active {
    color: #8e44ad;
    border-bottom-color: #8e44ad;
    background: rgba(142, 68, 173, 0.05);
}

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

/* Vertical Left Menu */
.vertical-menu {
    position: fixed;
    top: 115px; /* Below category nav */
    left: 0;
    width: 280px;
    height: calc(100vh - 115px);
    background: white;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 300;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.vertical-menu.collapsed {
    width: 60px;
}

.menu-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-title {
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.vertical-menu.collapsed .menu-title {
    opacity: 0;
}

.menu-nav {
    padding: 10px 0;
}

.menu-section {
    margin-bottom: 5px;
}

.menu-category {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.menu-category:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.menu-category.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.menu-category i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-category span {
    flex: 1;
    transition: opacity 0.3s ease;
}

.vertical-menu.collapsed .menu-category span {
    opacity: 0;
}

.expand-icon {
    font-size: 12px !important;
    width: 12px !important;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.vertical-menu.collapsed .expand-icon {
    opacity: 0;
}

.menu-category.expanded .expand-icon {
    transform: rotate(90deg);
}

.menu-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.menu-section.expanded .menu-submenu {
    max-height: 300px;
    padding: 8px 0;
}

.menu-item {
    display: block;
    padding: 12px 20px 12px 52px;
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: #e9ecef;
    color: #495057;
    border-left-color: #3498db;
}

.menu-item.active {
    background: #e3f2fd;
    color: #1976d2;
    border-left-color: #1976d2;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Removed vertical menu collapsed rule since no vertical menu */

/* Context Menu */
.context-menu {
    position: absolute;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    padding: 4px 0;
}

.context-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    transition: background 0.2s ease;
}

.context-item:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.context-item i {
    font-size: 12px;
    color: #f39c12;
}

/* Category View */
.category-view {
    margin-bottom: 20px;
}

.category-header {
    text-align: center;
    margin-bottom: 20px;
}

.category-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.category-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0 0 15px 0;
}


/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.hero-header {
    text-align: center;
    margin-bottom: 40px;
}

.hero-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0 0 15px 0;
}

.last-updated {
    color: #95a5a6;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

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

@media (min-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1600px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1900px) {
    .metrics-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.1) 50%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

/* Metric Card Variants */
.metric-card.critical {
    border-left-color: #e74c3c;
}

.metric-card.primary {
    border-left-color: #3498db;
}

.metric-card.success {
    border-left-color: #27ae60;
}

.metric-card.info {
    border-left-color: #17a2b8;
}

.metric-card.warning {
    border-left-color: #f39c12;
}

.metric-card.secondary {
    border-left-color: #6c757d;
}

/* Category accent color for metric cards */
.metric-card.category-accent {
    border-left-color: var(--accent-color);
}

.metric-card.category-accent:hover {
    background: var(--accent-bg);
}

.metric-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

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

.metric-card.critical .metric-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.metric-card.primary .metric-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.metric-card.success .metric-icon {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.metric-card.info .metric-icon {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.metric-card.warning .metric-icon {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.metric-card.secondary .metric-icon {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.metric-content {
    flex: 1;
}

.metric-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 8px 0;
    line-height: 1;
}

.metric-label {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.metric-change {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive {
    color: #27ae60;
}

.metric-change.negative {
    color: #e74c3c;
}

.metric-change.neutral {
    color: #7f8c8d;
}

/* Quick Actions */
.quick-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.quick-actions-toggle {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    width: 56px;
    height: 56px;
    position: relative;
}

.quick-actions-toggle span {
    display: none;
}

.quick-actions-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.quick-actions-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.quick-actions-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    max-height: 500px;
}

.quick-actions-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-actions-menu::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* Waldo AI Assistant Styles */
.waldo-interface {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.waldo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.waldo-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.waldo-avatar i {
    font-size: 18px;
    color: white;
}

.waldo-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.waldo-name {
    font-weight: 600;
    font-size: 14px;
}

.waldo-status {
    font-size: 12px;
    opacity: 0.9;
}

.waldo-chat {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px 16px;
    background: #f8f9fa;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

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

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

.waldo-chat::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.waldo-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.waldo-message-bot .message-content {
    background: white;
    color: #495057;
    border-radius: 12px 12px 12px 4px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.waldo-message-user .message-content {
    background: #667eea;
    color: white;
    border-radius: 12px 12px 4px 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 85%;
    align-self: flex-end;
    text-align: right;
}

.message-time {
    font-size: 11px;
    color: #6c757d;
    margin-left: 8px;
}

.waldo-message-user .message-time {
    text-align: right;
    margin-left: 0;
    margin-right: 8px;
}

.waldo-input-container {
    display: flex;
    padding: 12px 16px 16px 16px;
    gap: 8px;
    background: white;
}

.waldo-input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.waldo-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.waldo-send-btn {
    width: 36px;
    height: 36px;
    background: #667eea;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.waldo-send-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.waldo-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.waldo-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 8px;
}

.waldo-typing-dots {
    display: flex;
    gap: 2px;
}

.waldo-typing-dot {
    width: 4px;
    height: 4px;
    background: #6c757d;
    border-radius: 50%;
    animation: waldoTyping 1.4s infinite;
}

.waldo-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.waldo-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes waldoTyping {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px 16px;
}

.action-btn {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.action-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn.primary {
    border-color: #3498db;
    color: #3498db;
}

.action-btn.primary:hover {
    background: #3498db;
    color: white;
}

.action-btn.secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.action-btn.secondary:hover {
    background: #6c757d;
    color: white;
}

.action-btn.success {
    border-color: #27ae60;
    color: #27ae60;
}

.action-btn.success:hover {
    background: #27ae60;
    color: white;
}

.action-btn.info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.action-btn.info:hover {
    background: #17a2b8;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-header h2 {
        font-size: 24px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        padding: 20px;
    }

    .metric-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }

    .metric-card {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* User Favorites Bar */
.favorites-container {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    top: 115px; /* Below main header + category nav with buffer */
    left: 280px; /* Account for vertical menu */
    right: 0;
    z-index: 400; /* Below main nav and category nav but above content */
    display: block; /* Always visible as persistent favorites */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 80px;
}

.vertical-menu.collapsed ~ .favorites-container {
    left: 60px;
}

.vertical-menu.collapsed ~ .main-content .detailed-view {
    left: 60px;
}

.favorites-container.minimized {
    transform: translateY(-60px);
}

.favorites-container.minimized:hover {
    transform: translateY(-20px);
}

.favorites-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
}

.favorites-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.favorites-label i {
    font-size: 16px;
}

.favorites-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.favorites-scroll::-webkit-scrollbar {
    display: none;
}

.favorite-tile {
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.favorite-tile:hover {
    border-color: #3498db;
    transform: scale(1.05);
}

.favorite-tile .remove-favorite {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.favorite-tile:hover .remove-favorite {
    display: flex;
}

.favorite-tile .mini-title {
    font-size: 11px;
    font-weight: 500;
    color: #495057;
    text-align: center;
    line-height: 1.2;
}

.favorite-tile .mini-value {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.manage-favorites-btn, .toggle-favorites-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.manage-favorites-btn:hover, .toggle-favorites-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.toggle-favorites-btn.minimized i {
    transform: rotate(180deg);
}

/* Mini Tiles Header */
.mini-tiles-container {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: fixed;
    top: 115px; /* Below category navigation */
    left: 0;
    right: 0;
    z-index: 400; /* Below main nav and category nav but above content */
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 80px;
}

.mini-tiles-container.show {
    display: block;
}

/* Mini tiles states */
.mini-tiles-container.minimized {
    transform: translateY(-100%);
}

.mini-tiles-container.minimized:hover {
    transform: translateY(-80%);
}

.mini-tiles-container.enlarged .mini-tile {
    padding: 16px 20px;
    min-width: 120px;
}

.mini-tiles-container.enlarged .mini-value {
    font-size: 16px;
}

.mini-tiles-container.enlarged .mini-tile i {
    font-size: 16px;
}

.mini-tiles-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
}

.category-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-indicator:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-indicator:active {
    transform: translateY(0);
}

.category-indicator i {
    font-size: 16px;
}

.mini-tiles-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mini-tiles-scroll::-webkit-scrollbar {
    display: none;
}

.mini-tile {
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    min-width: 110px;
    justify-content: center;
}

.mini-tile[data-metric="critical"] {
    border-color: rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
}

.mini-tile[data-metric="active"] {
    border-color: rgba(52, 152, 219, 0.3);
    background: rgba(52, 152, 219, 0.05);
    color: #3498db;
}

.mini-tile[data-metric="completed"] {
    border-color: rgba(39, 174, 96, 0.3);
    background: rgba(39, 174, 96, 0.05);
    color: #27ae60;
}

.mini-tile[data-metric="shipping"] {
    border-color: rgba(23, 162, 184, 0.3);
    background: rgba(23, 162, 184, 0.05);
    color: #17a2b8;
}

.mini-tile[data-metric="deliveries"] {
    border-color: rgba(243, 156, 18, 0.3);
    background: rgba(243, 156, 18, 0.05);
    color: #f39c12;
}

.mini-tile[data-metric="staff"] {
    border-color: rgba(108, 117, 125, 0.3);
    background: rgba(108, 117, 125, 0.05);
    color: #6c757d;
}

/* Alert states for mini tiles */
.mini-tile.critical {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.2) !important;
}

.mini-tile.warning {
    border-color: #f39c12 !important;
    background: rgba(243, 156, 18, 0.1) !important;
    box-shadow: 0 3px 8px rgba(243, 156, 18, 0.2) !important;
}

.mini-tile.success {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.1) !important;
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.2) !important;
}

.mini-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mini-tile.active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mini-tile i {
    font-size: 14px;
}

.mini-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.mini-title {
    font-size: 10px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    margin-top: 4px;
    line-height: 1.1;
}

.toggle-tiles-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    margin-left: 16px;
    flex-shrink: 0;
    position: relative;
}

.toggle-tiles-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.05);
}

.toggle-tiles-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* Different states for the toggle button icons */
.mini-tiles-container.normal .toggle-tiles-btn i {
    transform: rotate(0deg);
}

.mini-tiles-container.minimized .toggle-tiles-btn i {
    transform: rotate(180deg);
}

.mini-tiles-container.enlarged .toggle-tiles-btn i {
    transform: rotate(90deg) scale(1.2);
}

.close-detail-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
    position: relative;
}

.close-detail-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: scale(1.05);
}

.close-detail-btn i {
    font-size: 12px;
}

/* Detailed View - Full Screen Layout */
.detailed-view {
    display: none;
    position: fixed;
    top: 115px; /* Below category navigation */
    left: 0; /* Full width since no vertical menu */
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    z-index: 300;
    overflow-y: auto;
    padding: 30px 20px;
}

.detailed-view.show {
    display: block;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust detailed view position when mini tiles are showing */
.mini-tiles-container.show ~ .main-content .detailed-view {
    top: 195px; /* Account for mini tiles height (115px + 80px) */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detailed-header {
    max-width: 1400px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.detailed-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.detailed-header p {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
}

.detailed-content {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 24px;
}

/* Detailed Summary Card */
.detailed-summary {
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.summary-card h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #495057;
    font-weight: 600;
}

.summary-value {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin: 16px 0;
    line-height: 1;
}

.summary-trend {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.summary-trend.positive {
    color: #27ae60;
}

.summary-trend.negative {
    color: #e74c3c;
}

.summary-trend.neutral {
    color: #6c757d;
}

/* Detailed Data Section */
.detailed-data h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Metric Actions */
.metric-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Back Button */
.back-button {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.back-button:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-button i {
    font-size: 14px;
}

/* Make metric cards clickable */
.metric-card {
    cursor: pointer;
    user-select: none;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hide hero section when in detailed view */
.hero-section.hide {
    display: none;
}

/* Data Tables */
.table-container {
    overflow-x: auto;
    padding: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table tr.priority-critical {
    background: rgba(231, 76, 60, 0.05);
}

.data-table tr.priority-high {
    background: rgba(243, 156, 18, 0.05);
}

.data-table tr.delayed {
    background: rgba(243, 156, 18, 0.05);
}

.data-table .low-stock {
    color: #e74c3c;
    font-weight: 600;
}

/* Generic Metric Detail Card */
.metric-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.metric-detail-header {
    display: flex;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.metric-detail-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.metric-detail-info {
    flex: 1;
}

.metric-detail-info h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.metric-detail-description {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

.metric-detail-value {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
}

.metric-detail-value.critical { color: #e74c3c; }
.metric-detail-value.primary { color: #3498db; }
.metric-detail-value.success { color: #27ae60; }
.metric-detail-value.info { color: #17a2b8; }
.metric-detail-value.warning { color: #f39c12; }
.metric-detail-value.secondary { color: #6c757d; }

.metric-detail-content {
    padding: 24px;
}

.metric-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-value.positive { color: #27ae60; }
.stat-value.negative { color: #e74c3c; }
.stat-value.neutral { color: #6c757d; }

.metric-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.overdue {
    color: #e74c3c;
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.critical {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge.high {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge.normal {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge.completed {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge.in-progress {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge.started {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge.active {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge.break {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.badge.delayed {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge.on-time {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

/* Progress Bars */
.progress-bar {
    position: relative;
    background: #e9ecef;
    border-radius: 4px;
    height: 20px;
    min-width: 80px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    z-index: 1;
}

/* Small Action Buttons */
.action-btn-sm {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-sm.primary {
    background: #3498db;
    color: white;
}

.action-btn-sm.primary:hover {
    background: #2980b9;
}

.action-btn-sm.success {
    background: #27ae60;
    color: white;
}

.action-btn-sm.success:hover {
    background: #219a52;
}

.action-btn-sm.info {
    background: #17a2b8;
    color: white;
}

.action-btn-sm.info:hover {
    background: #138496;
}

.action-btn-sm.secondary {
    background: #6c757d;
    color: white;
}

.action-btn-sm.secondary:hover {
    background: #5a6268;
}

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

.action-btn-sm:disabled:hover {
    background: #6c757d;
}

/* Dark Mode Styles */
[data-theme="dark"] body {
    background: #1a1a1a;
    color: #e9ecef;
}

[data-theme="dark"] .landing-page {
    background: #1a202c;
    color: #f7fafc;
}

[data-theme="dark"] body {
    background: #1a202c;
    color: #f7fafc;
}

[data-theme="dark"] .main-header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

[data-theme="dark"] .main-content {
    background: #1a1a1a;
}

[data-theme="dark"] .hero-header h2 {
    color: #f7fafc;
}

[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .last-updated {
    color: #a0aec0;
}

[data-theme="dark"] .metric-card {
    background: #2d3748;
    border-color: #4a5568;
    color: #e9ecef;
}

[data-theme="dark"] .metric-content h3 {
    color: #f7fafc !important;
}

[data-theme="dark"] .metric-label {
    color: #a0aec0;
}

[data-theme="dark"] .metric-value {
    color: #f7fafc;
}

[data-theme="dark"] .mini-tiles-container {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .mini-tile {
    background: #4a5568 !important;
    color: #f7fafc !important;
}

[data-theme="dark"] .detailed-view {
    background: #1a1a1a;
}

[data-theme="dark"] .detailed-header h2 {
    color: #f7fafc;
}

[data-theme="dark"] .detailed-header p {
    color: #a0aec0;
}

[data-theme="dark"] .detailed-content {
    background: #2d3748;
    color: #e9ecef;
}

[data-theme="dark"] .summary-card {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-color: #718096;
}

[data-theme="dark"] .summary-card h3 {
    color: #cbd5e0;
}

[data-theme="dark"] .summary-value {
    color: #f7fafc;
}

[data-theme="dark"] .detailed-data h3 {
    color: #f7fafc;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .back-button {
    background: #4a5568;
    color: #f7fafc;
}

[data-theme="dark"] .back-button:hover {
    background: #2d3748;
}

[data-theme="dark"] .data-table {
    color: #e9ecef;
}

[data-theme="dark"] .data-table th {
    background: #4a5568;
    color: #f7fafc;
    border-color: #718096;
}

[data-theme="dark"] .data-table td {
    border-color: #4a5568;
}

[data-theme="dark"] .data-table tr:hover {
    background: #4a5568;
}

[data-theme="dark"] .data-table tr.priority-critical {
    background: rgba(231, 76, 60, 0.2);
}

[data-theme="dark"] .data-table tr.priority-high {
    background: rgba(243, 156, 18, 0.2);
}

[data-theme="dark"] .quick-actions-menu {
    background: #2d3748;
    color: #e9ecef;
}

[data-theme="dark"] .waldo-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] .waldo-chat {
    background: #4a5568;
}

[data-theme="dark"] .waldo-message-bot .message-content {
    background: #2d3748;
    color: #e9ecef;
}

[data-theme="dark"] .waldo-input-container {
    background: #2d3748;
}

[data-theme="dark"] .waldo-input {
    background: #4a5568;
    border-color: #718096;
    color: #f7fafc;
}

[data-theme="dark"] .waldo-input::placeholder {
    color: #a0aec0;
}

[data-theme="dark"] .action-btn {
    background: #4a5568;
    color: #e9ecef;
    border-color: #718096;
}

[data-theme="dark"] .action-btn:hover {
    background: #718096;
}

/* Category Navigation Dark Mode */
[data-theme="dark"] .category-nav {
    background: #2c3e50;
    border-bottom: 1px solid #34495e;
}

[data-theme="dark"] .category-tab {
    color: #bdc3c7;
}

[data-theme="dark"] .category-tab:hover {
    color: #ecf0f1;
    background: #34495e;
}

[data-theme="dark"] .category-tab.active {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    border-bottom-color: #3498db;
}

/* Category View Dark Mode */
[data-theme="dark"] .category-header h2 {
    color: #ecf0f1;
}

[data-theme="dark"] .category-subtitle {
    color: #bdc3c7;
}


/* Detail View Components Dark Mode */
[data-theme="dark"] .data-table .low-stock {
    color: #e74c3c;
}

[data-theme="dark"] .metric-detail-card {
    background: #2c3e50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .metric-detail-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-bottom: 1px solid #34495e;
}

[data-theme="dark"] .metric-detail-info h3 {
    color: #ecf0f1;
}

[data-theme="dark"] .metric-detail-description {
    color: #bdc3c7;
}

[data-theme="dark"] .metric-detail-value {
    color: #ecf0f1;
}

[data-theme="dark"] .metric-detail-content {
    background: #2c3e50;
}

[data-theme="dark"] .stat-label {
    color: #bdc3c7;
}

[data-theme="dark"] .stat-value {
    color: #ecf0f1;
}

[data-theme="dark"] .close-detail-btn {
    background: #34495e;
    border: 1px solid #2c3e50;
    color: #bdc3c7;
}

[data-theme="dark"] .close-detail-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Category Navigation Dark Mode */
[data-theme="dark"] .category-tab[data-category="overview"].active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

[data-theme="dark"] .category-tab[data-category="inbound"].active {
    color: #9b59b6;
    border-bottom-color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

[data-theme="dark"] .category-tab[data-category="inventory"].active {
    color: #f39c12;
    border-bottom-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

[data-theme="dark"] .category-tab[data-category="outbound"].active {
    color: #27ae60;
    border-bottom-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

[data-theme="dark"] .category-tab[data-category="shipping"].active {
    color: #17a2b8;
    border-bottom-color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
}

[data-theme="dark"] .category-tab[data-category="workforce"].active {
    color: #e67e22;
    border-bottom-color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
}

[data-theme="dark"] .category-tab[data-category="equipment"].active {
    color: #6c757d;
    border-bottom-color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
}

[data-theme="dark"] .category-tab[data-category="analytics"].active {
    color: #8e44ad;
    border-bottom-color: #8e44ad;
    background: rgba(142, 68, 173, 0.1);
}

/* Category Indicator Dark Mode */
[data-theme="dark"] .category-indicator {
    color: white;
}

/* Vertical Menu Dark Mode */
[data-theme="dark"] .vertical-menu {
    background: #2d3748;
    border-right-color: #4a5568;
}

[data-theme="dark"] .menu-header {
    background: linear-gradient(135deg, #1a202c, #2d3748);
}

[data-theme="dark"] .menu-category {
    color: #e2e8f0;
}

[data-theme="dark"] .menu-category:hover {
    background: #4a5568;
    color: #f7fafc;
}

[data-theme="dark"] .menu-category.active {
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

[data-theme="dark"] .menu-submenu {
    background: #4a5568;
}

[data-theme="dark"] .menu-item {
    color: #cbd5e0;
}

[data-theme="dark"] .menu-item:hover {
    background: #2d3748;
    color: #f7fafc;
}

/* Favorites Dark Mode */
[data-theme="dark"] .favorites-container {
    background: #2d3748;
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .favorite-tile {
    background: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .favorite-tile .mini-title {
    color: #cbd5e0;
}

[data-theme="dark"] .manage-favorites-btn,
[data-theme="dark"] .toggle-favorites-btn {
    background: #4a5568;
    border-color: #2d3748;
    color: #cbd5e0;
}

[data-theme="dark"] .manage-favorites-btn:hover,
[data-theme="dark"] .toggle-favorites-btn:hover {
    background: #2d3748;
    color: #f7fafc;
}

/* Mini Tiles Dark Mode Enhancements */
[data-theme="dark"] .mini-tile {
    background: #4a5568;
    color: #f7fafc;
    border-color: #2d3748;
}

[data-theme="dark"] .mini-tile.critical {
    background: rgba(231, 76, 60, 0.2) !important;
    border-color: #e74c3c !important;
    color: #fff !important;
}

[data-theme="dark"] .mini-tile.warning {
    background: rgba(243, 156, 18, 0.2) !important;
    border-color: #f39c12 !important;
    color: #fff !important;
}

[data-theme="dark"] .mini-tile.success {
    background: rgba(39, 174, 96, 0.2) !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}

[data-theme="dark"] .mini-title {
    color: #cbd5e0;
}

[data-theme="dark"] .mini-value {
    color: #f7fafc;
}

/* Detailed View Dark Mode */
[data-theme="dark"] .detailed-view {
    background: #1a202c;
}

[data-theme="dark"] .detailed-content {
    background: #2d3748;
}

/* Dashboard Builder Page Styles */
.dashboard-page {
    background: #f8f9fa;
}

[data-theme="dark"] .dashboard-page {
    background: #1a1a1a;
}

/* Enhanced Widget Palette Items */
.widget-item {
    background: #bdc3c7;
    padding: 12px 8px;
    margin-bottom: 8px;
    cursor: grab;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.widget-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Color-coded widget items */
.widget-item.critical {
    background: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    color: #c0392b;
}

.widget-item.active {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    color: #2980b9;
}

.widget-item.shipping {
    background: rgba(23, 162, 184, 0.1);
    border-left: 3px solid #17a2b8;
    color: #138496;
}

.widget-item.deliveries {
    background: rgba(243, 156, 18, 0.1);
    border-left: 3px solid #f39c12;
    color: #e67e22;
}

.widget-item.staff {
    background: rgba(108, 117, 125, 0.1);
    border-left: 3px solid #6c757d;
    color: #495057;
}

.widget-item.notes {
    background: rgba(243, 156, 18, 0.1);
    border-left: 3px solid #f39c12;
    color: #e67e22;
}

/* Widget Content Styling */
.widget-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.widget-header h3 {
    margin: 0 0 5px 0 !important;
    color: #2c3e50 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.widget-subtitle {
    margin: 0 !important;
    color: #7f8c8d !important;
    font-size: 12px !important;
    font-style: italic !important;
}

.widget-content {
    height: calc(100% - 70px);
    overflow-y: auto;
}

.widget-actions {
    padding-top: 10px;
    border-top: 1px solid #ecf0f1;
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Mini Tables for Widgets */
.mini-table {
    font-size: 11px;
    overflow-x: auto;
}

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

.mini-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 6px 4px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    font-size: 11px;
}

.mini-table tr:hover {
    background: #f8f9fa;
}

.mini-table tr.priority-critical {
    background: rgba(231, 76, 60, 0.05);
}

.mini-table tr.priority-high {
    background: rgba(243, 156, 18, 0.05);
}

.mini-table tr.delayed {
    background: rgba(243, 156, 18, 0.05);
}

/* Compact Progress Bars for Widgets */
.widget-content .progress-bar {
    height: 14px;
    min-width: 50px;
}

.widget-content .progress-text {
    font-size: 9px;
}

/* Compact Badges for Widgets */
.widget-content .badge {
    padding: 2px 6px;
    font-size: 9px;
}

/* Compact Action Buttons for Widgets */
.widget-content .action-btn-sm {
    padding: 4px 8px;
    font-size: 10px;
}

.widget-content .action-btn-sm i {
    font-size: 10px;
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    margin-bottom: 0;
}

.dashboard-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.dashboard-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.dashboard-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 16px;
}

.dashboard-header i {
    color: #3498db;
    margin-right: 8px;
}

/* Override main styles for dashboard page */
.dashboard-page main {
    background: #f8f9fa;
    padding-top: 20px;
}