/* Clean Bootstrap Styles */
body {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.card {
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #fff !important;
}

.navbar-brand {
  font-weight: 600;
  color: #495057;
}

.navbar-nav .nav-link {
  color: #6c757d !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem;
  margin: 0 0.125rem;
  transition: color 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #495057 !important;
  background-color: #f8f9fa;
}

.navbar-nav .nav-link.active {
  color: #0d6efd !important;
  background-color: #e7f1ff;
  font-weight: 600;
}

.navbar-nav .nav-link i {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* Button Styles */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Form Styles */
.form-control {
  border-radius: 0.375rem;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

/* Table Styles */
.table {
  background-color: #fff;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table thead th {
  background-color: #f8f9fa;
  color: #495057;
  border: none;
  font-weight: 600;
}

/* Modal Styles */
.modal-content {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

/* Enhanced calendar styles */
.calendar-container {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.calendar-header {
  background-color: #f8f9fa;
  color: #495057;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 1rem;
}

.calendar-day {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  min-height: 100px;
  padding: 8px;
  transition: border-color 0.15s ease-in-out;
  position: relative;
  overflow: hidden;
}

.calendar-day:hover {
  border-color: #86b7fe;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.calendar-day.empty {
  background: transparent;
  border: none;
  min-height: 100px;
}

.calendar-day.has-transactions {
  background-color: #f8f9fa;
  border-color: #86b7fe;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.calendar-date {
  font-weight: 600;
  font-size: 1rem;
  color: #495057;
  margin-bottom: 8px;
  text-align: center;
}

.calendar-summary {
  margin-bottom: 4px;
}

.income-indicator {
  font-size: 0.75rem;
  color: #198754;
  font-weight: 600;
  text-align: center;
  background: rgba(25, 135, 84, 0.1);
  border-radius: 0.25rem;
  padding: 2px 4px;
  margin-bottom: 2px;
}

.expense-indicator {
  font-size: 0.75rem;
  color: #dc3545;
  font-weight: 600;
  text-align: center;
  background: rgba(220, 53, 69, 0.1);
  border-radius: 0.25rem;
  padding: 2px 4px;
  margin-bottom: 2px;
}

.transaction-count {
  font-size: 0.7rem;
  color: #6c757d;
  text-align: center;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 0.25rem;
  padding: 2px 4px;
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 8px);
}

.expense-amount {
  font-size: 0.8rem;
  color: #dc3545;
  text-align: center;
  margin: 4px 0;
  font-weight: 600;
}

.calendar-day.has-transactions:hover {
  background-color: #f8f9fa;
  border-color: #dc3545;
  box-shadow: 0 0.125rem 0.25rem rgba(220, 53, 69, 0.2);
}

/* Home spending list styles */
.home-spending-list {
  max-height: 300px;
  overflow-y: auto;
}

.home-spending-list::-webkit-scrollbar {
  width: 6px;
}

.home-spending-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.home-spending-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.home-spending-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0.5rem;
  }
  
  .calendar-day {
    min-height: 80px;
    padding: 4px;
  }
  
  .calendar-date {
    font-size: 0.875rem;
  }
  
  .income-indicator,
  .expense-indicator {
    font-size: 0.65rem;
  }
  
  .transaction-count {
    font-size: 0.6rem;
  }
}

/* Budget Progress Circle Charts */
.budget-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  background: #fff;
}

.budget-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.progress-circle {
  position: relative;
  display: inline-block;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  color: #495057;
}

.budget-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.budget-amounts {
  font-size: 0.75rem;
}

.budget-home {
  font-size: 0.75rem;
}
