/* ========================================
   FITBRANCH ADMIN - MODERN GREEN THEME
   Production-Ready Design System
   ======================================== */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

:root {
  /* Green Palette */
  --primary-green: #10b981;
  --dark-green: #047857;
  --darker-green: #065f46;
  --accent-green: #34d399;
  --light-green: #d1fae5;
  --very-light-green: #f0fdf4;

  /* Bright, Light Backgrounds */
  --bg-light: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;

  /* Text Colors */
  --text-dark: #111827;
  --text-medium: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;

  /* Border & Divider */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-green: 0 10px 20px rgba(16, 185, 129, 0.15);

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.admin-layout {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-dark);
  height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   SIDEBAR - GREEN GRADIENT (Only place with dark green)
   ======================================== */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--darker-green) 0%, var(--dark-green) 50%, var(--darker-green) 100%);
  padding: 2rem 0 0 0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-y: auto;
}

.admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(52, 211, 153, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.3);
  border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 211, 153, 0.5);
}

.admin-logo {
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.admin-logo h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-green), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.5px;
}

.admin-logo p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0.5rem 0 0 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.admin-nav {
  padding: 0 1rem 6rem 1rem;
  position: relative;
  z-index: 1;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 0.375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-green);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
  color: #fff;
}

.nav-link:hover::before {
  transform: scaleY(1);
}

.nav-link.active {
  background: rgba(16, 185, 129, 0.2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.nav-link.active::before {
  transform: scaleY(1);
}

.nav-link-icon {
  width: 22px;
  height: 22px;
  margin-right: 0.875rem;
  flex-shrink: 0;
}

.nav-link-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-user-section {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 280px;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-user-details {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.btn-signout {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
}

.btn-signout:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ========================================
   MAIN CONTENT AREA - BRIGHT & LIGHT
   ======================================== */
.admin-main {
  margin-left: 280px;
  height: 100vh;
  padding: 2.5rem 3rem;
  flex: 1;
  background: var(--bg-secondary);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-light);
  animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: -0.5px;
}

.admin-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ========================================
   FLASH MESSAGES - Bright & Friendly
   ======================================== */
.flash-messages {
  margin-bottom: 2rem;
}

.flash {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  font-size: 0.9375rem;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

@keyframes slideInRight {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.flash-notice {
  background: var(--very-light-green);
  border-left: 4px solid var(--primary-green);
  color: var(--dark-green);
}

.flash-alert {
  background: #fef2f2;
  border-left: 4px solid var(--color-danger);
  color: #991b1b;
}

/* ========================================
   STATS GRID - Clean & Modern
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--light-green), var(--very-light-green));
  opacity: 0.5;
  border-radius: 50%;
  transform: translate(40px, -40px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-green);
  border-color: var(--accent-green);
}

.stat-card:hover::before {
  transform: translate(30px, -30px) scale(1.1);
  opacity: 0.7;
}

.stat-card h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin: 0 0 1rem 0;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.stat-change {
  font-size: 0.8125rem;
  margin-top: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.stat-change.positive {
  color: var(--color-success);
}

.stat-change.negative {
  color: var(--color-danger);
}

/* ========================================
   CARDS - Clean White Cards
   ======================================== */
.card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeIn 0.6s ease;
}

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

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-actions {
  display: flex;
  gap: 0.75rem;
}

/* ========================================
   TABLES - Wider, Thinner, More Professional
   ======================================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

table thead tr {
  background: var(--bg-tertiary);
}

table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-medium);
  border-bottom: 2px solid var(--primary-green);
  white-space: nowrap;
}

table th:first-child {
  border-top-left-radius: 12px;
}

table th:last-child {
  border-top-right-radius: 12px;
}

table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.5;
}

table td:first-child {
  /* Padding removed for consistent spacing */
}

table td:last-child {
  /* Padding removed for consistent spacing */
}

table tbody tr {
  transition: all 0.2s ease;
  background: var(--bg-light);
}

table tbody tr:hover {
  background: var(--very-light-green);
  transform: scale(1.005);
  box-shadow: var(--shadow-sm);
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* ========================================
   BUTTONS - Modern & Polished
   ======================================== */
a, button, input[type="submit"] {
  position: relative;
  z-index: 10;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 10;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-dark);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--border-medium);
  border-color: var(--primary-green);
  color: var(--dark-green);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
  color: white;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.25);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 211, 153, 0.35);
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ========================================
   FORMS - Larger, More Spacious
   ======================================== */
.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-dark);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-lighter);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  background: var(--bg-light);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ========================================
   FILTERS - Animated & Interactive
   ======================================== */
.filters {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters:hover {
  box-shadow: var(--shadow-md);
}

/* Filter Group Container - horizontal layout for filters */
.filter-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

/* Filter Select Inputs - styled dropdowns */
.filter-select {
  min-width: 200px;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.filter-select:hover {
  border-color: var(--primary-green);
  background-color: var(--very-light-green);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background-color: var(--bg-light);
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--primary-green);
  background: var(--bg-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
}

/* ========================================
   PAGINATION - Clean & Modern
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  font-weight: 500;
}

.pagination a:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  font-weight: 700;
}

/* ========================================
   BADGES - Vibrant & Clear
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.badge-success {
  background: var(--light-green);
  color: var(--dark-green);
  border: 1px solid var(--accent-green);
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-sidebar {
    width: 240px;
  }

  .admin-main {
    margin-left: 240px;
    padding: 2rem;
  }

  .admin-user-section {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-user-section {
    transform: translateX(-100%);
  }

  .admin-main {
    margin-left: 0;
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-page-title {
    font-size: 1.75rem;
  }

  .card {
    padding: 1.5rem;
  }

  table th,
  table td {
    padding: 1rem;
  }

  table th:first-child,
  table td:first-child {
    padding-left: 1rem;
  }

  table th:last-child,
  table td:last-child {
    padding-right: 1rem;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 100%;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ========================================
   LOADING & ANIMATIONS
   ======================================== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ========================================
   DEVISE/AUTH PAGES - GREEN THEMED
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #111827;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #10b981 100%);
  padding: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow: hidden;
}

/* Beautiful green gradient background pattern */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(52, 211, 153, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6, 95, 70, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(30px, 30px) scale(0.9);
  }
}

/* Login Container - Modern & Bright */
.login-container {
  background: white;
  padding: 3rem 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #047857, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.login-container p {
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* Form Styles - Larger & More Spacious */
.field {
  margin-bottom: 1.75rem;
}

.field label {
  display: block;
  margin-bottom: 0.75rem;
  color: #111827;
  font-weight: 600;
  font-size: 0.9375rem;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #111827;
  background: #ffffff;
}

.field input[type="email"]:focus,
.field input[type="password"]:focus,
.field input[type="text"]:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.field input::placeholder {
  color: #9ca3af;
}

.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  accent-color: #10b981;
  cursor: pointer;
}

/* Checkbox field styling */
.field.checkbox-field {
  display: flex;
  align-items: center;
}

.field.checkbox-field label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  color: #374151;
}

/* Actions - Modern Buttons */
.actions {
  margin-top: 2rem;
}

.actions input[type="submit"],
.btn-primary {
  width: 100%;
  padding: 1.125rem;
  background: linear-gradient(135deg, #10b981, #047857);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.actions input[type="submit"]:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.actions input[type="submit"]:active,
.btn-primary:active {
  transform: translateY(-1px);
}

/* Links - Clean & Modern */
.login-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.9375rem;
}

.login-links a {
  color: #047857;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-links a:hover {
  color: #10b981;
  text-decoration: underline;
}

/* Error handling */
.field_with_errors {
  display: contents;
}

.field_with_errors input {
  border-color: #ef4444 !important;
}

#error_explanation {
  background: #fee2e2;
  color: #991b1b;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid #ef4444;
}

#error_explanation h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  font-family: 'Poppins', sans-serif;
}

#error_explanation ul {
  margin: 0;
  padding-left: 1.5rem;
}

#error_explanation li {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

/* Alert Messages - Bright & Clear */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.alert-success,
.notice {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  color: #047857;
}

.alert-error,
.alert-danger {
  background: #fee2e2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.alert-info {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}

.alert-warning {
  background: #fef3c7;
  border-left: 4px solid #fbbf24;
  color: #92400e;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 1rem;
  }

  .login-container {
    padding: 2rem;
  }

  .login-container h2 {
    font-size: 1.875rem;
  }
}
