/* Custom styles for Music Therapy Notes App */

:root {
  --primary-color: #7c3aed;
  --secondary-color: #f8fafc;
  --accent-color: #10b981;
  --text-color: #1f2937;
  --border-color: #e5e7eb;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  padding: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  border: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-color), #059669);
  border: none;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  background-color: #f8fafc;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(124, 58, 237, 0.02);
}

.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 2rem 1rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Dashboard Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
  color: white;
  background: linear-gradient(135deg, var(--primary-color), #6366f1) !important;
}

.card.bg-success {
  background: linear-gradient(135deg, var(--accent-color), #059669) !important;
}

.card.bg-info {
  background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

.card.bg-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .modal-dialog {
    margin: 15px;
  }

  .modal-body,
  .modal-header,
  .modal-footer {
    padding: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .card.bg-primary h4,
  .card.bg-success h4,
  .card.bg-info h4,
  .card.bg-warning h4 {
    font-size: 1.25rem;
  }
}

/* Animation classes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Google Sign-In Button Customization */
.g_id_signin {
  display: flex !important;
  justify-content: center !important;
  margin-top: 1rem;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

/* Status indicators */
.status-active {
  color: var(--accent-color);
}

.status-inactive {
  color: #6b7280;
}

.status-pending {
  color: #f59e0b;
}

/* Quick stats styling */
.quick-stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  margin-bottom: 1rem;
}

.quick-stat h4 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.quick-stat p {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
