:root {
  --color-primary: #1e293b;
  --color-primary-muted: #26A69A;
  --color-secondary: #78909C;
  --color-accent-positive: #4CAF50;
  --color-accent-negative: #EF5350;
  --color-accent-warning: #FFA726;
  --color-bg: #FAFAFA;
  --color-bg-alt: #ECEFF1;
  --color-text: #263238;
  --color-table-header: #E0E0E0;
}

body.custom-theme {
  background: var(--color-bg);
  color: var(--color-text);
}

.navbar, .card-header {
  background: var(--color-primary) !important;
  color: #fff !important;
}

.navbar, .navbar .nav-link, .navbar .navbar-brand {
  color: #efedf3 !important;
}

.btn-primary, .btn-primary:focus, .btn-primary:active {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

.btn-secondary {
  background: var(--color-secondary) !important;
  border-color: var(--color-secondary) !important;
  color: #fff !important;
}

.btn-success, .badge.bg-success {
  background: var(--color-accent-positive) !important;
  color: #fff !important;
}

.btn-danger, .badge.bg-danger {
  background: var(--color-accent-negative) !important;
  color: #fff !important;
}

.btn-warning, .badge.bg-warning {
  background: var(--color-accent-warning) !important;
  color: #fff !important;
}

.table {
  background: var(--color-bg);
  color: var(--color-text);
}

.table thead {
  background: var(--color-table-header);
}

.card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(120, 144, 156, 0.08);
  background-color: #a4afb9;
  border: none;
}

.card-header {
  border-radius: 12px 12px 0 0;
}

input.form-control, select.form-select, textarea.form-control {
  border-radius: 8px;
  border: 1px solid var(--color-secondary);
  background: #fff;
  color: var(--color-text);
}

input.form-control:focus, select.form-select:focus, textarea.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.15);
}

.alert-info {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: none;
}

.alert-danger, .alert-warning {
  background: var(--color-accent-negative);
  color: #fff;
  border: none;
}

.alert-success {
  background: var(--color-accent-positive);
  color: #fff;
  border: none;
}

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

.table .btn {
  border-radius: 50%;
  padding: 0.4em 0.6em;
  font-size: 1.1em;  
  
}

.card, .alert, .btn, .form-control, .form-select {
  border-radius: 8px !important;
}

/* Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-muted);
}

/* KPI Cards */
.kpi-card {
  background: #d5d9e3;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(120, 144, 156, 0.08);
  transition: transform 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kpi-label {
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.8;
}

.kpi-unit {
  font-size: 0.8rem;
  color: var(--color-secondary);
  margin-top: 0.25rem;
}

.kpi-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  opacity: 0.9;
}

/* Chart Containers */
.chart-container {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(120, 144, 156, 0.08);
  height: 100%;
  min-height: 300px;
  position: relative;
  height: 400px; /* or any height you prefer */
  width: 100%;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-indicator--success {
  background: var(--color-accent-positive);
  color: #fff;
}

.status-indicator--warning {
  background: var(--color-accent-warning);
  color: #fff;
}

.status-indicator--danger {
  background: var(--color-accent-negative);
  color: #fff;
}

/* Dashboard Card Variations */
.dashboard-card {
  background: var(--color-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(120, 144, 156, 0.08);
  height: 100%;
}

.dashboard-card--highlight {
  background: var(--color-primary);
  color: #fff;
}

.dashboard-card--highlight .kpi-value,
.dashboard-card--highlight .kpi-label {
  color: #fff;
}

/* List Items */
.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-bg-alt);
}

.dashboard-list-item:last-child {
  border-bottom: none;
}

.dashboard-list-label {
  color: var(--color-text);
  font-weight: 500;
}

.dashboard-list-value {
  color: var(--color-primary);
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-value {
    font-size: 2rem;
  }
  
  .chart-container {
    min-height: 250px;
  }
}

/* Company Settings Upload Zones */
.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #f8f9fa;
    margin-bottom: 20px;
}

.upload-zone:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.upload-zone.drag-over {
    border-color: #28a745;
    background-color: #f0fff4;
}

.upload-placeholder {
    color: #6c757d;
}

.upload-placeholder i {
    margin-bottom: 10px;
    color: #007bff;
}

.upload-placeholder p {
    margin: 5px 0;
    font-size: 14px;
}

.upload-placeholder small {
    color: #6c757d;
    font-size: 12px;
}

.uploaded-image {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.upload-actions {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.upload-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Company Settings Form */
.form-group label {
    font-weight: 500;
    color: #495057;
}

.form-group small {
    color: #6c757d;
}

.text-primary {
    color: #1e293b !important;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.card-header .card-title {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.card-header .card-title i {
    margin-right: 0.5rem;
    color: #007bff;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

.card-footer .btn {
    margin-right: 0.5rem;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 80%;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Make the mobile menu (navbar-toggler-icon) yellow */
@media (max-width: 991.98px) {
  .navbar-toggler .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
  }
  .navbar-toggler .navbar-toggler-icon::before,
  .navbar-toggler .navbar-toggler-icon::after,
  .navbar-toggler .navbar-toggler-icon span {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background: #FFD600; /* Bright yellow */
    margin: 0.3em 0;
    border-radius: 2px;
    transition: all 0.3s;
  }
  .navbar-toggler .navbar-toggler-icon span {
    margin: 0.3em 0;
  }
}

/* For Bootstrap default icon, override filter to make it yellow */
.navbar-toggler .navbar-toggler-icon {
  filter: brightness(0) saturate(100%) invert(81%) sepia(99%) saturate(7499%) hue-rotate(1deg) brightness(104%) contrast(104%);
}

.table-card-bg {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

@media print {
  @page {
    size: A4 portrait;
    margin: 20mm;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .navbar, .btn, .sidebar, .footer, .d-flex.gap-2, .alert, .card-header, .print-hide {
    display: none !important;
  }
  .container-fluid, .container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .card, .card-body, .card-header {
    box-shadow: none !important;
    border: none !important;
  }
  table {
    width: 100% !important;
    font-size: 12pt !important;
  }
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
  }
} 