/* Restaurant Management System - Dashboard Specific Styles */

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.stat-card:nth-child(2):hover {
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
    box-shadow: 0 4px 12px rgba(252, 70, 107, 0.3);
}

.stat-card:nth-child(3):hover {
    box-shadow: 0 8px 25px rgba(252, 70, 107, 0.4);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
    box-shadow: 0 4px 12px rgba(253, 187, 45, 0.3);
}

.stat-card:nth-child(4):hover {
    box-shadow: 0 8px 25px rgba(253, 187, 45, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-info p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Dashboard Content Layout */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 2fr 1fr;
    }
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Recent Orders List */
.orders-list {
    max-height: 400px;
    overflow-y: auto;
}

.order-item {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin-bottom: 8px;
}

.order-item:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

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

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

.order-id {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

.order-details {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: #718096;
    flex-wrap: wrap;
}

.order-table,
.order-time,
.order-total {
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-total {
    font-weight: 600;
    color: #2d3748;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-actions .btn {
    justify-content: flex-start;
    text-align: left;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.quick-actions .btn i {
    margin-right: 12px;
    font-size: 16px;
}

.quick-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.quick-actions .btn-secondary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
}

.quick-actions .btn-warning {
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
    border: none;
    color: white;
}

/* Today's Summary */
.summary-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.summary-label {
    color: #718096;
    font-weight: 500;
}

.summary-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 16px;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.widget-action {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.widget-action:hover {
    color: #5a67d8;
}

/* Chart Containers */
.chart-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

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

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.chart-period {
    color: #718096;
    font-size: 14px;
}

.chart-placeholder {
    height: 250px;
    background: linear-gradient(45deg, #f7fafc 25%, transparent 25%),
                linear-gradient(-45deg, #f7fafc 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f7fafc 75%),
                linear-gradient(-45deg, transparent 75%, #f7fafc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-style: italic;
}

/* Progress Bars */
.progress-container {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-fill.success {
    background: linear-gradient(90deg, #48bb78 0%, #38ef7d 100%);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #ed8936 0%, #fdbb2d 100%);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #fc8181 0%, #fc466b 100%);
}

/* Activity Feed */
.activity-feed {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

.activity-icon.order {
    background: #667eea;
}

.activity-icon.payment {
    background: #48bb78;
}

.activity-icon.inventory {
    background: #ed8936;
}

.activity-icon.staff {
    background: #9f7aea;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #2d3748;
    font-size: 14px;
    margin: 0 0 4px 0;
}

.activity-time {
    color: #718096;
    font-size: 12px;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification-panel.show {
    transform: translateX(0);
}

.notification-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background: #f7fafc;
}

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

.notification-item.unread {
    background: #edf2f7;
    border-left: 3px solid #667eea;
}

.notification-message {
    color: #2d3748;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.notification-time {
    color: #718096;
    font-size: 12px;
}

/* Empty States */
.empty-dashboard {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-dashboard i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.empty-dashboard h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

.empty-dashboard p {
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Performance Indicators */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.performance-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.performance-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.performance-label {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.performance-change {
    font-size: 12px;
    font-weight: 600;
}

.performance-change.positive {
    color: #48bb78;
}

.performance-change.negative {
    color: #f56565;
}

.performance-change.neutral {
    color: #718096;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .quick-actions .btn {
        padding: 12px 15px;
    }
    
    .notification-panel {
        width: calc(100vw - 40px);
        right: 20px;
    }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .dashboard-widget {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .widget-title {
        color: #e2e8f0;
    }
    
    .summary-value {
        color: #e2e8f0;
    }
    
    .order-item:hover {
        background: #4a5568;
    }
}