/* Logistics Dashboard Styles */
.logistics-layout {
  display: flex;
  height: 100vh;
  background-color: #f8f9fa;
  font-family: 'Inter', sans-serif;
}

.logistics-sidebar {
  width: 260px;
  background-color: #1a202c;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-header {
  padding: 0 20px 30px;
  text-align: center;
}

.sidebar-header .logo {
  height: 40px;
  margin-bottom: 10px;
}

.sidebar-nav {
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-item:hover, .nav-item.active {
  background-color: #2d3748;
  color: white;
}

.nav-item i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid #2d3748;
}

.user-info {
  margin-bottom: 15px;
}

.user-name {
  display: block;
  font-weight: bold;
}

.user-role {
  font-size: 0.8rem;
  color: #a0aec0;
}

.logout-btn {
  width: 100%;
  padding: 10px;
  background-color: #e53e3e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logistics-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logistics-header {
  height: 70px;
  background-color: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.status-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #48bb78;
}

.logistics-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

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

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stat-card .label {
  display: block;
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: bold;
  color: #2d3748;
}

.orders-list {
  display: grid;
  gap: 15px;
}

.order-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-number {
  font-weight: bold;
  color: #3182ce;
}

.assign-btn {
  padding: 10px 20px;
  background-color: #3182ce;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

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

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  width: 500px;
  max-height: 80vh;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.couriers-list {
  padding: 20px;
  overflow-y: auto;
}

.courier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f7fafc;
}

.courier-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.online .status-dot { background-color: #48bb78; }
.offline .status-dot { background-color: #a0aec0; }
.offline { opacity: 0.6; }

.select-btn {
  padding: 5px 15px;
  background-color: #48bb78;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.select-btn:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
}

/* Login Page */
.logistics-login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7fafc;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  margin: 15px 0 5px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
}

.login-form .submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #3182ce;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.error-message {
  color: #e53e3e;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.hidden { display: none; }
