/* BALDMART EXPRESS COD Platform Styles - Guinea Conakry */

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white: #ffffff;
  --border-color: #dee2e6;
  --text-color: #495057;
  --bg-color: #f5f5f5;
  --sidebar-width: 250px;
  --header-height: 60px;
  --guinea-green: #009639;
  --guinea-yellow: #ffd700;
  --guinea-red: #ce1126;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Login Page Styles */
.login-page {
  background: linear-gradient(135deg, var(--guinea-green) 0%, var(--primary-color) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 450px;
}

.login-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, var(--guinea-green), var(--primary-color));
  color: var(--white);
  padding: 30px;
  text-align: center;
}

.login-logo {
  max-height: 60px;
  margin-bottom: 15px;
}

.login-logo-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.login-logo-text i {
  margin-right: 10px;
  font-size: 28px;
}

.login-header h2 {
  font-size: 22px;
  margin-bottom: 5px;
}

.login-header p {
  opacity: 0.9;
  font-size: 14px;
}

.country-info {
  margin-top: 15px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  display: inline-block;
  font-size: 14px;
}

.country-info i {
  margin-right: 5px;
}

.login-body {
  padding: 30px;
}

.login-form {
  margin-bottom: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
}

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

.input-group i {
  position: absolute;
  left: 15px;
  color: var(--secondary-color);
  z-index: 2;
}

.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.password-toggle {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  z-index: 2;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn i {
  margin-right: 8px;
}

.demo-accounts {
  background: var(--light-color);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.demo-accounts h4 {
  margin-bottom: 15px;
  color: var(--dark-color);
  text-align: center;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.demo-account {
  background: var(--white);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 1.4;
}

.demo-account strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
}

.login-footer {
  background: var(--light-color);
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--secondary-color);
}

/* Alert Styles */
.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.alert i {
  margin-right: 10px;
  font-size: 18px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Main Layout */
.wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.sidebar-logo {
  max-height: 50px;
}

.sidebar-logo-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
}

.sidebar-logo-text i {
  margin-right: 8px;
  color: var(--guinea-green);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--primary-color);
  color: var(--white);
}

.sidebar-menu a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-header {
  background: var(--white);
  height: var(--header-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-left {
  display: flex;
  align-items: center;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-color);
  cursor: pointer;
  margin-right: 20px;
  display: none;
}

.header-left h1 {
  font-size: 24px;
  color: var(--dark-color);
}

.header-right {
  display: flex;
  align-items: center;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-info {
  text-align: right;
  margin-right: 15px;
}

.user-name {
  display: block;
  font-weight: 500;
  color: var(--dark-color);
}

.user-role {
  font-size: 12px;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  min-width: 200px;
  display: none;
  z-index: 1001;
}

.user-menu:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-menu a:hover {
  background: var(--light-color);
}

.dropdown-menu a i {
  margin-right: 10px;
  width: 16px;
}

.content {
  flex: 1;
  padding: 30px;
}

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

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

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  margin-right: 20px;
  background: var(--primary-color);
}

.stat-icon.pending {
  background: var(--warning-color);
}

.stat-icon.delivered {
  background: var(--success-color);
}

.stat-icon.revenue {
  background: var(--guinea-green);
}

.stat-info h3 {
  font-size: 28px;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.stat-info p {
  color: var(--secondary-color);
  font-size: 14px;
}

/* Card Styles */
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.card-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  color: var(--dark-color);
  font-size: 18px;
}

.card-body {
  padding: 25px;
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: var(--light-color);
  font-weight: 600;
  color: var(--dark-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: background 0.3s ease;
  cursor: pointer;
}

.table tbody tr:hover {
  background: var(--light-color);
}

/* Status Badge */
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #d1ecf1;
  color: #0c5460;
}

.status-processing {
  background: #cce5ff;
  color: #004085;
}

.status-shipped {
  background: #e2e3e5;
  color: #383d41;
}

.status-delivered {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* Button Styles */
.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn-outline:hover {
  background: var(--light-color);
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
}

.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: var(--danger-color);
  color: var(--white);
}

.btn-danger:hover {
  background: #c82333;
}

.btn-warning {
  background: var(--warning-color);
  color: var(--dark-color);
}

.btn-warning:hover {
  background: #e0a800;
}

.btn-info {
  background: var(--info-color);
  color: var(--white);
}

.btn-info:hover {
  background: #138496;
}

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

  .sidebar.active {
    transform: translateX(0);
  }

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

  .sidebar-toggle {
    display: block;
  }

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

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

  .content {
    padding: 20px;
  }

  .user-info {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 10px;
  }

  .login-body {
    padding: 20px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--secondary-color);
}

.mb-0 {
  margin-bottom: 0;
}

.mt-20 {
  margin-top: 20px;
}

.p-20 {
  padding: 20px;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.w-100 {
  width: 100%;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Guinea Flag Colors Accent */
.guinea-accent {
  border-left: 4px solid var(--guinea-red);
  border-right: 4px solid var(--guinea-yellow);
  border-bottom: 4px solid var(--guinea-green);
}

/* Print Styles */
@media print {
  .sidebar,
  .top-header,
  .btn {
    display: none !important;
  }

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

  .content {
    padding: 0;
  }
}
