/* Main Styles */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Card Styles */
.card {
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

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

.card-header {
  border-radius: 10px 10px 0 0 !important;
  font-weight: bold;
}

/* Dashboard Cards */
.stat-card {
  border-left: 5px solid;
  transition: all 0.3s ease;
}

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

.stat-card .card-body {
  padding: 1.25rem;
}

.stat-card-income {
  border-left-color: #28a745;
}

.stat-card-expense {
  border-left-color: #dc3545;
}

.stat-card-balance {
  border-left-color: #17a2b8;
}

.stat-card-budget {
  border-left-color: #ffc107;
}

.stat-card .stat-icon {
  font-size: 2.5rem;
  opacity: 0.3;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* Form Styles */
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Transaction List */
.transaction-list .income {
  border-left: 4px solid #28a745;
}

.transaction-list .expense {
  border-left: 4px solid #dc3545;
}

.transaction-amount.income {
  color: #28a745;
}

.transaction-amount.expense {
  color: #dc3545;
}

/* Budget Progress */
.budget-progress .progress {
  height: 10px;
  border-radius: 5px;
}

.budget-progress .progress-bar {
  border-radius: 5px;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  color: #fff;
}

/* Date Range Picker */
.date-range-picker {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.date-range-picker .form-control {
  max-width: 150px;
  margin: 0 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .stat-card .stat-icon {
    font-size: 2rem;
  }

  .date-range-picker {
    flex-direction: column;
    align-items: flex-start;
  }

  .date-range-picker .form-control {
    max-width: 100%;
    margin: 5px 0;
  }
}

/* Login and Register Forms */
.auth-form {
  max-width: 450px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.auth-form .form-control {
  padding: 12px;
  height: auto;
}

.auth-form .btn {
  padding: 12px;
}

/* Goals */
.goal-card {
  position: relative;
  overflow: hidden;
}

.goal-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  background-color: #28a745;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  body {
    background-color: #fff;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
