/* Updated: Dashboard styling fix - v3.0 - Force deployment - 2025-01-25 */
:root{
  --bg: #ffffff;
  --card:#ffffff; 
  --text:#2a2a2a; 
  --muted:#6b7280; 
  --primary:#4f46e5; 
  --primary-light:#6366f1;
  --secondary:#10b981;
  --danger:#ef4444;
  --warning:#f59e0b;
  --border:#e5e7eb;
  --shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-lg:0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Beautiful Header / Nav */
header{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  min-height: 80px;
}

.header-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.header-content h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #fff, #e0e7ff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.header-content h1::after {
  content: '🚛';
  margin-left: 12px;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

.header-content nav {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-link.logout {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border: 1px solid rgba(255, 107, 107, 0.3);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-link.logout:hover {
  background: linear-gradient(135deg, #ff5252, #e53935);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.nav-link.logout::after {
  content: '🚪';
  margin-left: 8px;
  font-size: 0.9rem;
}

/* Active page indicator */
.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
or the 
/* Dashboard logout button styling */
.custom-header .button {
  background: #dc3545 !important;
  color: white !important;
  border: 2px solid #dc3545 !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.custom-header .button:hover {
  background: #c82333 !important;
  border-color: #c82333 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* Responsive header */
@media (max-width: 768px) {
  .header-content {
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .header-content nav {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 12px 16px;
  }
  
  .header-content h1 {
    font-size: 1.3rem;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
.brand{ 
  font-weight:800; 
  font-size: 1.5rem;
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
main{ 
  max-width: 1400px; 
  margin: 40px auto; 
  padding: 40px 32px; 
  min-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Ensure body and html are completely white */
html, body {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Cards */
.card{
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.2);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  border-radius: 24px 24px 0 0;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.card.narrow{ max-width:480px; margin:60px auto; }

/* Typography & helpers */
h1{ 
  margin:0 0 24px; 
  font-size: 2.5rem;
  font-weight: 800;
  color: #2a2a2a;
}

/* Dashboard h1 override - ensure it's soft black, not blue gradient */
.card h1 {
  color: #2a2a2a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  text-shadow: none !important;
}

/* More specific dashboard h1 override */
section.card h1 {
  color: #2a2a2a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  text-shadow: none !important;
}

/* Override any header h1 styling for dashboard */
.card .header-content h1,
section.card .header-content h1 {
  color: #2a2a2a !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  text-shadow: none !important;
}
h2{ 
  margin:0 0 20px; 
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
}
h3{ 
  margin:0 0 16px; 
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
p{ margin: 12px 0; }
.hint{ 
  color:var(--muted); 
  font-size:.9em; 
  font-style: italic;
}
.error{
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color:#991b1b;
  padding:12px 16px;
  border-radius:12px;
  margin-bottom:16px;
  border-left: 4px solid var(--danger);
}

/* Forms */
label{ 
  display:block; 
  margin:16px 0 8px; 
  font-weight: 600;
  color: var(--text);
}
input[type=text],
input[type=password],
input[type=date],
input[type=time],
textarea,
select{
  width:100%;
  padding:12px 16px;
  border:2px solid var(--border);
  border-radius:12px;
  background:#fff;
  font:inherit;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
input:focus,
textarea:focus,
select:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}
textarea{ 
  min-height:100px; 
  resize:vertical; 
  font-family: inherit;
}
select{
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.form-actions{ 
  margin-top:24px; 
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.button{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  background: #4a4a4a;
  color:#2a2a2a;
  text-decoration:none;
  border: 2px solid #ffffff;
  padding:12px 20px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}
.button::before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.button:hover::before{
  left: 100%;
}
.button:hover{ 
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  background: #5a5a5a;
  border-color: #ffffff;
}
.button:active{ transform: translateY(0px); }
.button.secondary{ 
  background: #4a4a4a;
  color: #2a2a2a;
  border: 2px solid #ffffff;
}
.button.primary{ 
  background: #4a4a4a;
  color: #2a2a2a;
  border: 2px solid #ffffff;
}
.button.danger{ 
  background: linear-gradient(135deg, var(--danger), #dc2626);
}
.button.success{
  background: linear-gradient(135deg, var(--secondary), #059669);
}

/* Table */
.table{
  width:100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.table th, .table td{
  border-bottom:1px solid #f1f5f9;
  padding:16px 20px;
  text-align:left;
  vertical-align:top;
  font-size: 0.95rem;
}
.table thead th{ 
  background: linear-gradient(135deg, #667eea, #764ba2); 
  font-weight: 700; 
  color: white;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.table thead th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}
.table tbody tr{
  transition: all 0.2s ease;
}
.table tbody tr:hover{
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}
.table tr:last-child td{ border-bottom:none; }

/* Check / inline helpers */
.check{ 
  display:flex; 
  align-items:center; 
  gap:12px; 
  margin-bottom:16px; 
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.check:hover{
  border-color: var(--primary);
  background: #f0f9ff;
}

/* Grid block used in pickups */
.grid{
  display:grid;
  grid-template-columns: 1fr 200px 1fr;
  gap:16px;
  align-items:end;
  margin-bottom:16px;
}

/* Pickup row container */
.pickup-row{
  border:2px dashed var(--border);
  border-radius:16px;
  padding:20px;
  margin-bottom:16px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  transition: all 0.3s ease;
  position: relative;
}
.pickup-row:hover{
  border-color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.pickup-row::before{
  content: '📦';
  position: absolute;
  top: -10px;
  left: 20px;
  background: white;
  padding: 0 8px;
  font-size: 1.2rem;
}

/* Simple action links container */
.actions{ 
  display:flex; 
  gap:16px; 
  flex-wrap:wrap; 
  margin-top: 24px;
}

/* Status badges */
.status{
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status.active{
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}
.status.canceled{
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  color: #991b1b;
}

/* Role indicators */
.role-badge{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 8px;
}
.role-badge.manager{
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
}
.role-badge.driver{
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}
.role-badge.user{
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #7c3aed;
}

/* Responsive tweaks */
@media (max-width: 768px){
  .grid{ grid-template-columns: 1fr; }
  header{ 
    flex-direction:column; 
    align-items:flex-start; 
    gap:12px; 
    padding: 16px 20px;
  }
  main{
    padding: 0 16px;
    margin: 20px auto;
  }
  .card{
    padding: 20px;
  }
  h1{
    font-size: 2rem;
  }
  .actions{
    flex-direction: column;
  }
  .button{
    justify-content: center;
  }
  .table{
    font-size: 0.85rem;
  }
  .table th, .table td{
    padding: 12px 8px;
  }
}

/* Completion Status Styles */
.pickup-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
}

.pickup-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.pickup-item.completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.pickup-number {
  background: var(--primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pickup-address {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text);
}

.completed-badge {
  background: var(--secondary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

.button.small {
  padding: 4px 8px;
  font-size: 0.8rem;
  min-height: auto;
}

.button.success {
  background: var(--secondary);
  color: white;
  border: none;
}

/* File Drop Zone Styles */
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.file-drop-zone:hover {
  border-color: var(--primary);
  background: #f8f9ff;
}

.file-drop-zone.dragover {
  border-color: var(--primary);
  background: #f0f4ff;
  transform: scale(1.02);
}

.file-drop-zone.has-file {
  border-color: var(--secondary);
  background: #f0fdf4;
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone-icon {
  font-size: 2rem;
  opacity: 0.6;
}

.drop-zone-text p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.click-to-browse {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.file-info {
  font-size: 0.8rem !important;
  color: var(--muted) !important;
}

.attachment-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.attachment-actions .button {
  font-size: 0.8rem;
  padding: 6px 12px;
  min-height: auto;
}

/* File List Styles */
.file-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  margin: 4px 0;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.file-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.file-item .file-info {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
}

.file-item .file-icon {
  font-size: 1.2rem;
}

.file-item .file-name {
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

.file-item .file-size {
  font-size: 0.8rem;
  color: #6c757d;
}

.file-item .file-actions {
  display: flex;
  gap: 4px;
}

.file-item .file-actions .button {
  font-size: 0.7rem;
  padding: 2px 6px;
  min-height: auto;
  border-radius: 4px;
}

/* Attachment Preview Styles */
.attachment-preview {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Responsive adjustments for file uploads */
@media (max-width: 768px) {
  .file-drop-zone {
    padding: 16px;
  }
  
  .attachment-actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .attachment-actions .button {
    width: 100%;
    justify-content: center;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .file-item .file-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.button.success:hover {
  background: #059669;
}

.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status.active {
  background: #dbeafe;
  color: #1e40af;
}

.status.canceled {
  background: #fee2e2;
  color: #dc2626;
}

.delivery-completed {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

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

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  margin: 20px;
}
