/* Modern GymSaaS Theme */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4cc9f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-bg: #0f172a;
  --sidebar-bg: #1e293b;
  --card-bg: #ffffff;
  --body-bg: #f1f5f9;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-radius: 12px;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
}

/* Sidebar Styling */
.sidebar {
  background-color: var(--sidebar-bg);
  min-height: 100vh;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.sidebar h4 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.sidebar h4 i {
  margin-right: 10px;
  color: var(--accent-color);
}

.sidebar .nav-link {
  color: #94a3b8;
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  margin-bottom: 4px;
}

.sidebar .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link.active {
  color: var(--accent-color);
  background-color: rgba(67, 97, 238, 0.1);
  border-left-color: var(--accent-color);
}

.sidebar .nav-link i {
  width: 24px;
  text-align: center;
  margin-right: 8px;
}

/* Card Styling */
.card {
  background-color: var(--card-bg);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}

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

.card-header {
  background-color: transparent;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  padding: 1.25rem;
  color: var(--text-main);
}

.card-body {
  padding: 1.5rem;
}

/* Dashboard Stats Cards */
.bg-info {
  background-color: #3b82f6 !important;
} /* Blue */
.bg-success {
  background-color: #10b981 !important;
} /* Emerald */
.bg-warning {
  background-color: #f59e0b !important;
} /* Amber */
.bg-danger {
  background-color: #ef4444 !important;
} /* Red */
.bg-secondary {
  background-color: #64748b !important;
} /* Slate */

.text-white .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Tables */
.table {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table thead th {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

/* Badges */
.badge {
  padding: 0.5em 0.8em;
  border-radius: 6px;
  font-weight: 500;
}

/* Navbar/Header (if any) */
.navbar {
  background-color: var(--card-bg);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Utilities */
.text-muted {
  color: var(--text-muted) !important;
}

.h2,
h2 {
  font-weight: 700;
  color: #1e293b;
}

/* Soft Backgrounds for Icons */
.bg-light-primary {
  background-color: rgba(67, 97, 238, 0.15);
  color: var(--primary-color);
}
.bg-light-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}
.bg-light-danger {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
}
.bg-light-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning-color);
}
.bg-light-info {
  background-color: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

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

/* Login Page Styles */
.login-wrapper {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)),
    url("https://images.unsplash.com/photo-1549719386-74dfcbf7dbed?q=80&w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.login-brand h3 {
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--primary-color);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}
