﻿/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F8FBFF;
  color: #333;
}
.login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.login .container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  max-height: 700px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0 !important;
}

/* Left Panel (Background Image + Text) */
.left-panel {
  background: url('/images/Login_img.png') no-repeat center center;
  /* place image in wwwroot/images */
  background-size: cover;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  min-height: 100%;
}

.left-panel .intro-section {
  bottom: 200px;
  position: relative;
  z-index: 2;
  /* text above overlay */
  max-width: 588px;
  padding: 10px;
}

.left-panel h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #111111;
}

.left-panel .description {
  font-size: 14px;
  color: #43484D;
  padding: 10px;
}

/* Right Panel (Form) */
.login-section {
  padding: 60px;
  background: #fff;
  top: 206px;
}

.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo-img {
  width: 100px;
  margin-bottom: 5px;
}

.login-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

/* Login Title */
.login-title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Role Buttons */
.login-options {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.btn-admin,
.btn-user {
  width: 120px;
  height: 42px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  font-size: 14px;
}

.btn-admin {
  background: #ff5722;
  color: #fff;
  border-radius: 6px 0 0 6px;
}

.btn-user {
  background: #f5f5f5;
  color: #333;
  border-radius: 0 6px 6px 0;
}

.btn-user:hover {
  background: #eee;
}

.btn-user.restricted {
  position: relative;
}

/* Optional: show tooltip on hover */
.btn-user.restricted::after {
  content: "Not able to access";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.btn-user.restricted:hover::after {
  opacity: 1;
}

/* Form Fields */
/* Form group wrapper */
.form-login {
  padding: 40px;
  padding-top: 20px;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

/* Input with icon wrapper */
.input-icon {
  position: relative;
  width: 100%;
}

/* Icon inside input */
.input-icon .icon {
  position: absolute;
  left: 12px;
  top: 40%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-icon .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Input styling */
.input-icon input {
  padding-left: 42px;
  /* space for the icon */
  height: 44px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

/* Placeholder style */
input::placeholder {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #aaa;
}

/* Forgot Password */
.forgot-password {
  display: block;
  text-align: right;
  font-size: 13px;
  margin-top: -5px;
  margin-bottom: 15px;
  color: #1a73e8;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Primary Button */
.btn-primary {
  background: #1a73e8;
  border: none;
  width: 100%;
  padding: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.btn-primary:hover {
  background: #0f5ec4;
}

/* Signup Link */
.signup-link {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  margin-top: 15px;
}

.signup-link a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.3s ease, color 0.3s ease;
}

.signup-link a:hover {
  text-decoration: underline;
  color: #0f5ec4;
  /* optional: darker blue on hover */
}

/* Tablet and below */
@media (max-width: 992px) {
  .login .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left-panel {
    min-height: 250px;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .left-panel .intro-section {
    bottom: 0;
    max-width: 100%;
    padding: 15px;
  }

  .login-section {
    padding: 40px 20px;
  }
}

/* Mobile screens */
@media (max-width: 576px) {
  .logo-img {
    width: 70px;
  }

  .login-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .role-btn {
    width: 100px;
    height: 38px;
    font-size: 13px;
  }

  .form-login {
    padding: 20px 15px;
  }

  .input-icon input {
    height: 40px;
    font-size: 13px;
  }

  .btn-primary {
    padding: 10px;
    font-size: 14px;
  }

  .signup-link {
    font-size: 13px;
  }
}

/* App Container */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Unauthenticated Layout */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Sidebar Styles */
.sidebar {
  width: 100px;
  background: #fff;
  box-shadow: 0px 1px 2px 0px #7090B017;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 10px 5px;
  text-align: center;
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo svg {
  width: 70px;
  height: 30px;
}

.sidebar-nav {
  padding: 0;
  flex: 1;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  color: #2E3237;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0;
  margin: 0;
  width: 100px;
  height: 80px;
  justify-content: center;
  border: 2px solid transparent;
}

.nav-link:hover {
  background-color: rgba(28, 99, 171, 0.1);
  color: #1C63AB;
  text-decoration: none;
  width: 100px;
  height: 80px;
}

.nav-link.active {
  background-color: #1C63AB;
  color: white;
  font-weight: 600;
  width: 100px;
  height: 80px;
}

.nav-link.active .nav-icon {
  color: white;
}

.nav-link.active .nav-text {
  color: white;
}

.nav-link.active svg {
  stroke: white;
}

.nav-link.active svg path {
  stroke: white;
}

.nav-icon {
  width: 25px;
  height: 25px;
  margin-bottom: 8px;
  stroke-width: 2;
  color: #2E3237;
}

.nav-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  word-break: break-word;
  color: #2E3237;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 100px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Header */
.top-header {
  background: white;
  padding: 0 30px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 1px 2px 0px #7090B017;
  position: fixed;
  top: 0;
  left: 100px;
  right: 0;
  z-index: 999;
}

.header-left .logo-img-small {
  height: 35px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
}

.notification-btn:hover {
  background-color: #f5f5f5;
  color: #1976d2;
}

.notification-btn svg {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff5722;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.user-profile:hover {
  background-color: #f5f5f5;
}

.user-profile .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.user-profile .dropdown-menu {
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 8px;
  padding: 8px 0;
}

.user-profile .dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.user-profile .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #1976d2;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e3f2fd;
  padding: 8px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.user-email {
  font-size: 12px;
  color: #666;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: #666;
}

/* Page Content */
.page-content {
  flex: 1;
}

/* Control Tower Styles */
.control-tower-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 30px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #666;
  font-size: 16px;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1976d2, #42a5f5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.stat-label {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.recent-activity {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.activity-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.activity-item:hover {
  background-color: #f8f9fa;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: #e3f2fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1976d2;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 20px;
  height: 20px;
}

.activity-content {
  flex: 1;
}

.activity-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.activity-content p {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .top-header {
    left: 0;
    /* Full width on mobile */
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 20px;
    padding-top: 90px;
    /* Adjust for mobile header */
  }
}

/* Extra small mobile screens */
@media (max-width: 576px) {
  .top-header {
    padding: 0 15px;
    /* Reduce padding on very small screens */
  }

  .page-content {
    padding: 15px;
    padding-top: 85px;
    /* Slightly less padding for very small screens */
  }
}

/* Legacy Bootstrap Overrides */
a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Shipper Info Panel Styles */
.shipper-info-panel-overlay {
  position: fixed;
  top: 0;
  right: -380px;
  width: 350px;
  height: 100vh;
  background: white;
  z-index: 3000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.shipper-info-panel-overlay.active {
  right: 0;
}

.shipper-info-panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2999;
  display: none;
  /*backdrop-filter: blur(2px);*/
}

.shipper-info-panel-backdrop.active {
  display: block;
}

.shipper-info-header {
  padding: 30px;
  padding-left: 7px;
  padding-right: 7px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #f0f0f0;
}

.shipper-profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shipper-avatar-large {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e3f2fd;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shipper-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shipper-title-info h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px 0;
}

.shipper-panel-id {
  font-size: 14px;
  color: #6c757d;
}

.close-panel-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #444;
  transition: background 0.2s;
}

.close-panel-btn:hover {
  background: #f5f5f5;
}

.shipper-info-content {
  padding: 30px;
  flex: 1;
}

.info-section {
  margin-bottom: 35px;
}

.info-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.info-item.align-start {
  align-items: flex-start;
}

.info-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c8c8c;
  flex-shrink: 0;
}

.info-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.about-text {
  color: #555;
  font-style: normal;
}

.mt-1 {
  margin-top: 4px;
}

/* Filter Button */
.filter-btn {
  background: white;
  color: #3b82f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-btn:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #2563eb;
}

.filter-btn svg {
  width: 20px;
  height: 20px;
}

/* Filter Panel Styles */
.filter-panel-overlay {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  z-index: 3001;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.filter-panel-overlay.active {
  right: 0;
}

.filter-panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 3000;
  display: none;
}

.filter-panel-backdrop.active {
  display: block;
}

.filter-panel-header {
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  min-height: 60px;
}

.filter-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.close-filter-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  transition: background 0.2s;
}

.close-filter-btn:hover {
  background: #f5f5f5;
}

.filter-panel-content {
  padding: 20px 25px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
}

.filter-panel-content::-webkit-scrollbar {
  display: none;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  text-align: left;
}

.filter-input {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

.filter-input:focus {
  outline: none;
  border-color: #1a73e8;
}

.location-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.location-input {
  width: 100%;
  height: 48px;
  padding: 0 15px 0 35px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

.location-dot {
  position: absolute;
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.location-dot.green-dot {
  background-color: #4CAF50;
}

.location-dot.red-dot {
  background-color: #F44336;
}

.location-label {
  font-size: 13px;
  color: #666;
}

.filter-select-container {
  position: relative;
}

.filter-select {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
  background: #fff;
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #999;
}

.filter-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  text-align: center;
}

.filter-tag.active {
  background: #fff;
  border-color: #3b82f6;
  color: #3b82f6;
}

.filter-weight-input-container {
  display: flex;
  align-items: center;
}

.filter-weight-input-container .filter-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

.filter-unit {
  height: 48px;
  padding: 0 15px;
  background: #f3f4f6;
  border: 1px solid #e0e0e0;
  border-left: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.filter-panel-footer {
  padding: 25px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.filter-footer-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.filter-btn-clear,
.filter-btn-apply {
  width: 100px;
  height: 42px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn-clear {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #6b7280;
}

.filter-btn-clear:hover {
  background: #f8f9fa;
}

.filter-btn-apply {
  background: #f97316;
  border: none;
  color: #fff;
}

.filter-btn-apply:hover {
  background: #ea580c;
}

/* Make shipper name clickable in tables */
.shipper-name {
    cursor: pointer;
    color: #3b82f6 !important;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.shipper-name:hover {
  color: #0d47a1 !important;
  text-decoration: underline;
}

/* Shipper Info Payment Details */
.payment-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-detail-row .label {
  font-size: 14px;
  color: #4b5563;
}

.payment-detail-row .value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}