/* ===== CSS Variables ===== */
:root {
  --primary-color: #16476a;
  --primary-dark: #132440;
  --secondary-color: #3b9797;
  --accent-color: #fdb5ce;
  --success-color: #3b9797;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #16476a;

  --bg-color: #fafbfc;
  --card-bg: #ffffff;
  --sidebar-bg: #132440;
  --topbar-bg: #ffffff;

  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-light: #adb5bd;

  --border-color: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

  --transition: all 0.2s ease;

  --sidebar-width: 260px;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  padding: 0;
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.close-sidebar {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-sidebar:hover {
  color: var(--primary-color);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
  font-size: 0.95rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-left-color: var(--accent-color);
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
}

/* ===== Main Content ===== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
}

.top-bar {
  background: var(--topbar-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--primary-color);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  text-decoration: none;
  transition: var(--transition);
}

.btn-logout:hover {
  background: #fecaca;
  transform: scale(1.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.user-info i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

/* ===== Content Wrapper ===== */
.content-wrapper {
  padding: 2rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--text-secondary);
  color: white;
}

.btn-secondary:hover {
  background: var(--text-primary);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.summary-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.card-icon {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
}

.card-icon.blue {
  background: var(--primary-color);
}
.card-icon.green {
  background: var(--success-color);
}
.card-icon.purple {
  background: var(--accent-color);
}
.card-icon.orange {
  background: #fd7e14;
}

.card-content h3 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.card-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== Chart ===== */
.chart-container {
  position: relative;
  height: 250px;
  margin-bottom: 1rem;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color.male {
  background: #16476a;
}
.legend-color.female {
  background: #fdb5ce;
}

/* ===== Recent List ===== */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 8px;
  transition: var(--transition);
}

.recent-item:hover {
  background: #e2e8f0;
}

.recent-info h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.recent-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.recent-date {
  color: var(--text-light);
  font-size: 0.875rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.view-all-link:hover {
  gap: 0.75rem;
}

/* ===== Filters Section ===== */
.filters-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-group {
  display: flex;
  gap: 1rem;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  background: white;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* ===== Table ===== */
.table-container {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: #f8f9fa;
}

.data-table th {
  padding: 0.9rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.9rem;
}

.data-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: #f8f9fa;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.available {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.out-of-stock {
  background: #fee2e2;
  color: #991b1b;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.action-btn:hover {
  transform: scale(1.1);
}

.edit-btn {
  background: #dbeafe;
  color: #1e40af;
}

.edit-btn:hover {
  background: #bfdbfe;
}

.delete-btn {
  background: #fee2e2;
  color: #991b1b;
}

.delete-btn:hover {
  background: #fecaca;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.modal-content.small {
  max-width: 400px;
}

.modal-content.large {
  max-width: 700px;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* ===== Form ===== */
form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.error-message {
  display: block;
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ===== Products Grid (User Dashboard) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.product-image {
  height: 180px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.product-info {
  padding: 1.2rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-weight: 600;
}

.product-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-color);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== Product Detail ===== */
.product-detail-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail-image {
  height: 180px;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: flex;
  gap: 1rem;
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 120px;
}

.detail-value {
  color: var(--text-primary);
}

.detail-value.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.detail-description {
  margin-top: 0.5rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card.full-width {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
  }

  .sidebar {
    left: -260px;
  }

  .sidebar.active {
    left: 0;
  }

  .close-sidebar {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .content-wrapper {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .filters-section {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    flex-direction: column;
  }

  .filter-select {
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
  }

  .data-table {
    min-width: 800px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-body {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-content {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }
}

/* ===== LOGIN PAGE STYLES ===== */
.login-body {
  background: var(--primary-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.login-left {
  background: var(--primary-color);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.login-left i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.login-left h1 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.login-left p {
  font-size: 1rem;
  opacity: 0.9;
}

.login-right {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.login-header h2 {
  color: var(--text-primary);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-form label {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.input-with-icon input {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.login-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
  cursor: pointer;
}

.login-form select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-login {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-login:hover {
  background: var(--primary-dark);
}

.btn-login:active {
  transform: scale(0.98);
}

.login-info {
  margin-top: 1.3rem;
  padding: 0.9rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid var(--secondary-color);
}

.login-info p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin: 0.25rem 0;
}

.login-info strong {
  color: var(--text-primary);
}

.login-info code {
  background: #e9ecef;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: var(--primary-color);
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
}

.role-selection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.role-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.role-card:hover {
  border-color: #16476a;
  background: #f0f7ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(22, 71, 106, 0.1);
}

.role-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
}

.role-icon.admin {
  background: linear-gradient(135deg, #16476a 0%, #132440 100%);
}

.role-icon.user {
  background: linear-gradient(135deg, #3b9797 0%, #2a7272 100%);
}

.role-info h3 {
  color: #132440;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.role-info p {
  color: #64748b;
  font-size: 0.95rem;
}

.role-arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.role-card:hover .role-arrow {
  color: #16476a;
  transform: translateX(5px);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2rem 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divider span {
  padding: 0 1rem;
}

.features {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.features h4 {
  color: #132440;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.features li {
  color: #64748b;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features li i {
  color: #3b9797;
  font-size: 0.7rem;
}

/* Login page responsive */
@media (max-width: 768px) {
  .login-container {
    grid-template-columns: 1fr;
  }

  .login-left {
    padding: 2rem;
  }

  .login-left i {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .login-left h1 {
    font-size: 1.4rem;
  }

  .login-right {
    padding: 2rem;
  }

  .features ul {
    grid-template-columns: 1fr;
  }
}

/* Loading page styles */
.loading-body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--primary-dark);
}

.loader {
  text-align: center;
  color: white;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
