/* Modern Theme for Assistant-PM */

:root {
  /* Custom color scheme - concrete-inspired */
  --brand-primary: #3a6ea5;
  --brand-secondary: #004e89;
  --brand-accent: #ff6b35;
  --brand-light: #f0f4f8;
  --brand-dark: #2d3748;
  --brand-gray: #718096;
  --brand-success: #00b894;
  --brand-danger: #e74c3c;
  --brand-warning: #f1c40f;
  
  /* Add these colors to Bootstrap */
  --bs-primary: var(--brand-primary);
  --bs-secondary: var(--brand-secondary);
  --bs-success: var(--brand-success);
  --bs-danger: var(--brand-danger);
  --bs-warning: var(--brand-warning);
}

/* Modern card styles */
.card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 0.5rem;
}

.card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
}

.card-header h5 {
  margin-bottom: 0;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Navigation improvements */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--brand-accent) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--brand-accent);
  border-radius: 2px;
}

/* Button enhancements */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
}

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

.btn-primary:hover {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-success:hover {
  background-color: #00a382;
  border-color: #00a382;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table styling */
.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead th {
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
  background-color: rgba(58, 110, 165, 0.1);
}

/* Form controls */
.form-control, .form-select {
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.25rem rgba(58, 110, 165, 0.25);
}

/* Dashboard styling */
.dashboard-stat-card {
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.dashboard-stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-stat-card p {
  color: var(--brand-gray);
  margin-bottom: 0;
}

.dashboard-stat-card i {
  font-size: 2rem;
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Project status indicators */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-good {
  background-color: var(--brand-success);
  box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}

.status-warning {
  background-color: var(--brand-warning);
  box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
}

.status-danger {
  background-color: var(--brand-danger);
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Page headers */
.page-header {
  position: relative;
  margin-bottom: 2rem;
  font-weight: 700;
}

.page-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 50px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--brand-accent);
}

/* Cost breakdown improvements */
.cost-breakdown-table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Upload zone styling */
.upload-zone {
  transition: all 0.2s;
  border: 2px dashed rgba(255, 255, 255, 0.2) !important;
}

.upload-zone:hover {
  background-color: rgba(0, 0, 0, 0.1) !important;
  border-color: var(--brand-primary) !important;
}

/* Currency formatting */
.currency {
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.currency.positive {
  color: var(--brand-success);
}

.currency.negative {
  color: var(--brand-danger);
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
  .card-header, .card-body {
    padding: 1rem;
  }
  
  .dashboard-stat-card {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.4rem 0.8rem;
  }
  
  .page-header {
    margin-bottom: 1.5rem;
  }
  
  .page-header::after {
    width: 40px;
    height: 3px;
  }
}