/* Professional Desktop Kitchen Dashboard Styles */

/* Desktop Layout */
.desktop-container {
    min-height: 100vh;
    background: #f5f7fa;
}

/* Professional Sidebar */
.desktop-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #1e3a5f 0%, #2d5a7b 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.desktop-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.desktop-logo i {
    font-size: 2rem;
    color: var(--secondary-yellow);
}

.desktop-sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border-left: 3px solid transparent;
}

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

.desktop-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left-color: var(--secondary-yellow);
}

.desktop-nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.desktop-sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.desktop-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gray-900);
    font-weight: 700;
}

.desktop-user-details h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.desktop-user-details p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Main Content Area */
.desktop-main {
    margin-left: 260px;
    min-height: 100vh;
}

.desktop-topbar {
    background: var(--white);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.desktop-topbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.desktop-topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.desktop-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.desktop-icon-btn:hover {
    background: var(--gray-200);
}

.desktop-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
}

.desktop-content {
    padding: 32px;
}

/* Professional Stats Grid */
.desktop-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.desktop-stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-orange);
    transition: all var(--transition-base);
}

.desktop-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.desktop-stat-card.stat-success {
    border-left-color: var(--success);
}

.desktop-stat-card.stat-warning {
    border-left-color: var(--warning);
}

.desktop-stat-card.stat-info {
    border-left-color: var(--info);
}

.desktop-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.desktop-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.desktop-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

.desktop-stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.desktop-stat-change {
    font-size: 0.75rem;
    color: var(--success);
    margin-top: 8px;
}

.desktop-stat-change i {
    margin-right: 4px;
}

/* Professional Order Cards */
.desktop-orders-grid {
    display: grid;
    gap: 20px;
}

.desktop-order-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--info);
    transition: all var(--transition-base);
}

.desktop-order-card.preparing {
    border-left-color: var(--warning);
}

.desktop-order-card.ready {
    border-left-color: var(--success);
}

.desktop-order-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.desktop-order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.desktop-order-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 4px 0;
}

.desktop-order-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.desktop-order-meta i {
    margin-right: 6px;
}

.desktop-order-status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desktop-order-status-badge.ordered {
    background: var(--info-light);
    color: var(--info);
}

.desktop-order-status-badge.preparing {
    background: var(--warning-light);
    color: var(--warning);
}

.desktop-order-status-badge.ready {
    background: var(--success-light);
    color: var(--success);
}

.desktop-order-items {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.desktop-order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.desktop-order-actions {
    display: flex;
    gap: 12px;
}

.desktop-order-actions .btn {
    flex: 1;
}

/* Professional Table */
.desktop-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.desktop-table-header {
    background: var(--gray-50);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-table-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.desktop-table-body {
    padding: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
    .desktop-sidebar {
        transform: translateX(-100%);
    }

    .desktop-main {
        margin-left: 0;
    }

    .desktop-sidebar.mobile-open {
        transform: translateX(0);
    }
}