/* Admin styles */

body {
  background-color: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  color: #000000;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eeeeee;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.admin-header nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #555555;
}

.nav-button {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.nav-button:hover {
  background-color: #333333;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Dashboard Header with Period Selector */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eeeeee;
}

.dashboard-header h1 {
  margin: 0;
  color: #000000;
  font-size: 1.75rem;
  font-weight: 600;
}

.period-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.period-selector label {
  font-weight: 400;
  color: #555555;
  font-size: 0.9rem;
}

.period-selector select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dddddd;
  border-radius: 4px;
  background-color: white;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

.period-selector select:focus {
  outline: none;
  border-color: #000000;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Stats Overview Cards */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-card {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
}

.stat-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #555555;
  font-weight: 500;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-subtitle {
  font-size: 0.85rem;
  color: #777777;
}

/* Metrics Section */
.metrics-section {
  grid-column: 1 / -1;
}

.metrics-section h2 {
  color: #000000;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .charts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chart-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #eeeeee;
}

.chart-card h3 {
  margin: 0 0 0.5rem 0;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 600;
}

.chart-description {
  color: #555555;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Recent Activity Styling */
.dashboard-card {
  background-color: white;
  border-radius: 8px;
  border: 1px solid #eeeeee;
  padding: 1.5rem;
}

.dashboard-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0;
}

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

.bid-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eeeeee;
}
.bid-item:last-child {
  border-bottom: none;
}

.bid-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.bid-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bid-title {
  font-weight: 600;
  color: #000000;
}

.bid-meta {
  font-size: 0.85rem;
  color: #555555;
}

.bid-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid;
  background-color: transparent;
}

.status-completed {
  color: #28a745;
  border-color: #28a745;
}

.status-pending {
  color: #ffc107;
  border-color: #ffc107;
}

.view-all {
  margin-top: 1rem;
  text-align: right;
}

.view-all a {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.view-all a:hover {
  text-decoration: underline;
}

.dashboard-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.9rem;
  border: 1px solid;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-primary:hover {
  background-color: #333333;
  border-color: #333333;
}

.btn-secondary {
  background-color: #ffffff;
  color: #000000;
  border-color: #dddddd;
}

.btn-secondary:hover {
  background-color: #f8f8f8;
  border-color: #cccccc;
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  border-color: #000000;
}

.btn-outline:hover {
  background-color: #000000;
  color: #ffffff;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #7f8c8d;
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: #34495e;
}

.bid-details {
  margin-top: 2rem;
}

.bid-details .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.back-link {
  color: #3498db;
  text-decoration: none;
}

.bid-info-card,
.analysis-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ecf0f1;
}

.info-table th {
  font-weight: 600;
  color: #34495e;
  width: 30%;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.analysis-content {
  white-space: pre-wrap;
  line-height: 1.6;
}

.no-analysis {
  color: #7f8c8d;
  font-style: italic;
}

.text-muted {
  color: #7f8c8d;
}

.notice, .alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

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

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

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

.table-hover thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

.table-hover td, .table-hover th {
  padding: 0.75rem;
  vertical-align: middle;
}

.table-hover {
  border-collapse: collapse;
  width: 100%;
  background-color: white;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.d-flex.gap-2 {
  gap: 0.5rem;
}

.btn-outline-info, .btn-outline-secondary, .btn-outline-danger {
  background-color: transparent;
  border: 1px solid;
  transition: all 0.2s;
}

.btn-outline-info {
  color: #17a2b8;
  border-color: #17a2b8;
}

.btn-outline-info:hover {
  background-color: #17a2b8;
  color: white;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: white;
}

.search-container {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .search-container {
    margin-bottom: 1rem;
  }
  
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }
  
  .input-group .form-control {
    border-radius: 0.375rem;
  }
}

.input-group {
  display: flex;
  align-items: stretch;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-right: none;
}

.input-group .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-left: none;
  border-radius: 0;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.input-group .form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.input-group .form-control:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.bi-search {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

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

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

.materials-container {
  margin-top: 2rem;
}

.table-responsive {
  overflow-x: auto;
}

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

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.search-info {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Danger button styling */
.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: white;
}

.danger-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid #dc3545;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.danger-btn:hover {
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
  transform: translateY(-1px);
}

/* Form styling for button_to */
.dashboard-actions form {
  display: inline-block;
  margin: 0;
}

.dashboard-actions form .btn {
  margin: 0;
} 