/* Gift Tracker Custom Styles */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

/* Cards */
.card {
  border-radius: 0.5rem;
  border: 1px solid rgba(0,0,0,0.1);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Tables */
.table th {
  font-weight: 600;
  border-top: none;
}

/* Buttons */
.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

/* Status badges */
.badge {
  font-weight: 500;
}

/* Links */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.navbar a:hover,
.btn:hover {
  text-decoration: none;
}

/* Footer */
.footer {
  margin-top: auto;
}

/* Dashboard stats cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info {
  border: none;
}

.card.bg-primary .card-footer,
.card.bg-success .card-footer,
.card.bg-info .card-footer {
  padding-top: 0;
}

.card.bg-primary .card-footer a,
.card.bg-success .card-footer a,
.card.bg-info .card-footer a {
  opacity: 0.8;
  font-size: 0.875rem;
}

.card.bg-primary .card-footer a:hover,
.card.bg-success .card-footer a:hover,
.card.bg-info .card-footer a:hover {
  opacity: 1;
}

/* Filter form */
.card-body form .form-control,
.card-body form .form-select {
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .btn-group-sm {
    flex-direction: column;
  }

  .btn-group-sm .btn {
    border-radius: 0.375rem !important;
    margin-bottom: 0.25rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Login/Register page */
.card.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

/* Form improvements */
.form-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-text {
  font-size: 0.8rem;
}

/* Alert improvements */
.alert {
  border-radius: 0.5rem;
}

/* Gift status colors in list */
tr:has(.badge.bg-success) {
  background-color: rgba(25, 135, 84, 0.05);
}

tr:has(.badge.bg-warning) {
  background-color: rgba(255, 193, 7, 0.05);
}
