/* ===== Order Progress Dashboard Styles ===== */
/* Modern, clean styles matching the inventory management module */

/* ===== Page Header ===== */
.order-progress-container .page-header {
  margin-bottom: 2rem;
  padding: 2rem 0 1rem 0;
}

.order-progress-container .header-content {
  max-width: 800px;
}

.order-progress-container .page-title,
.order-progress-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #4a4a4a;
  background: linear-gradient(135deg, #8bc34a, #6a9e34);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.dark-mode .order-progress-container .page-title,
html.dark-mode .order-progress-container h1 {
  background: linear-gradient(135deg, #ecf0f1, #8bc34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.order-progress-container .page-subtitle,
.order-progress-container .subtitle {
  font-size: 1.1rem;
  color: #546e7a;
  margin: 0;
  font-weight: 400;
}

html.dark-mode .order-progress-container .page-subtitle,
html.dark-mode .order-progress-container .subtitle {
  color: #95a5a6;
}

/* ===== Navigation Tabs ===== */
.order-progress-container .inner-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html.dark-mode .order-progress-container .inner-tabs {
  background: #2a2a2a;
}

/* Tab Button - Flat color secondary UI control */
.order-progress-container .tab-button {
  flex: 1;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Sora', system-ui, sans-serif;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-progress-container .tab-button:hover {
  background: white;
  color: #4a6e1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-progress-container .tab-button.active {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3);
  transform: translateY(-1px);
}

.order-progress-container .tab-button.active:hover {
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

html.dark-mode .order-progress-container .tab-button {
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark-mode .order-progress-container .tab-button:hover {
  background: #1a1a1a;
  color: #a5d461;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html.dark-mode .order-progress-container .tab-button.active {
  background: linear-gradient(135deg, #8bc34a, #7ab82d);
  color: white;
  box-shadow: 0 3px 10px rgba(139, 195, 74, 0.3);
}

html.dark-mode .order-progress-container .tab-button.active:hover {
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

.order-progress-container .tab-button i {
  font-size: 1.125rem;
}

/* Dashboard Controls */
.dashboard-controls {
    margin-bottom: 25px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html.dark-mode .filter-controls {
    background: #2a2a2a;
}

.filter-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #495057;
    font-weight: 500;
}

html.dark-mode .filter-controls label {
    color: #d1d5db;
}

.filter-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #8bc34a;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8bc34a, #7ab82d);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Sora', system-ui, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(139, 195, 74, 0.3);
    margin-left: auto;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #7ab82d, #689f26);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
}

.btn-refresh:active {
    transform: translateY(0);
}

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

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html.dark-mode .stat-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode .stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

html.dark-mode .stat-label {
    color: #95a5a6;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8bc34a;
    line-height: 1;
}

html.dark-mode .stat-value {
    color: #a5d461;
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-card {
    background: white;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html.dark-mode .session-card {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.dark-mode .session-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.session-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 700;
}

html.dark-mode .session-info h3 {
    color: #ecf0f1;
}

.session-meta {
    font-size: 0.875rem;
    color: #666;
    margin: 0.25rem 0;
}

html.dark-mode .session-meta {
    color: #95a5a6;
}

.session-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

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

.status-badge.in_progress {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.draft {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.status-badge.cancelled {
    background: #ffebee;
    color: #c62828;
}

.session-owner {
    font-size: 12px;
    color: #666;
}

.session-progress {
    margin: 15px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

html.dark-mode .progress-label {
    color: #bbb;
}

.progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

html.dark-mode .progress-bar-container {
    background: #444;
}

.progress-bar-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s;
}

/* Session Actions */
.session-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Sora', system-ui, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
}

.btn-secondary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

html.dark-mode .btn-secondary {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    color: #d1d5db;
}

html.dark-mode .btn-secondary:hover {
    background: #1a1a1a;
    color: #ecf0f1;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #c62828);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
}

.btn-success {
    background: linear-gradient(135deg, #8bc34a, #7ab82d);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #7ab82d, #689f26);
}

/* Audit Log */
.audit-log {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.audit-log h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

html.dark-mode .audit-log h4 {
    color: #bbb;
}

.audit-log-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.audit-entry {
    font-size: 12px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 120px 80px 1fr;
    gap: 10px;
}

html.dark-mode .audit-entry {
    background: #2a2a2a;
}

.audit-timestamp {
    color: #666;
}

html.dark-mode .audit-timestamp {
    color: #999;
}

.audit-action {
    font-weight: 600;
    color: #333;
}

html.dark-mode .audit-action {
    color: #ddd;
}

.audit-action.started { color: #2196F3; }
.audit-action.claimed { color: #4CAF50; }
.audit-action.drafted { color: #ff9800; }
.audit-action.cancelled { color: #f44336; }
.audit-action.completed { color: #388e3c; }
.audit-action.transferred { color: #9c27b0; }
.audit-action.forced_takeover { color: #d32f2f; }
.audit-action.forced_cancel { color: #c62828; }

.audit-details {
    color: #666;
}

html.dark-mode .audit-details {
    color: #aaa;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html.dark-mode .modal-content {
    background: #2a2a2a;
}

.modal-content.modal-small {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

html.dark-mode .modal-header {
    border-bottom-color: #3a3a3a;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

html.dark-mode .modal-header h2 {
    color: #ecf0f1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

html.dark-mode .modal-close {
    color: #95a5a6;
}

html.dark-mode .modal-close:hover {
    color: #ecf0f1;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

html.dark-mode .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.input-group {
    margin: 1rem 0;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #333;
    font-weight: 600;
}

html.dark-mode .input-group label {
    color: #d1d5db;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s;
    font-family: 'Sora', system-ui, sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

html.dark-mode .input-group input {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #ecf0f1;
}

html.dark-mode .input-group input:focus {
    border-color: #8bc34a;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1rem;
}

html.dark-mode .loading {
    color: #95a5a6;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

html.dark-mode .empty-state {
    color: #6c757d;
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ===== Notification Icon Styles (for modals) ===== */
.notification-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2rem;
}

.notification-icon.success {
  background: #d4edda;
  color: #155724;
}

.notification-icon.error {
  background: #f8d7da;
  color: #721c24;
}

.notification-icon.warning {
  background: #fff3cd;
  color: #856404;
}

.notification-icon.info {
  background: #d1ecf1;
  color: #0c5460;
}

html.dark-mode .notification-icon.success {
  background: rgba(139, 195, 74, 0.2);
  color: #8bc34a;
}

html.dark-mode .notification-icon.error {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

html.dark-mode .notification-icon.warning {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
}

html.dark-mode .notification-icon.info {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .session-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .session-status {
        align-items: flex-start;
    }
    
    .session-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .audit-entry {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
