/* ========================================
   MAIN.CSS - Styles principaux
   ======================================== */

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--font-normal);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* Skip to content (Accessibilité) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 9999;
  transition: top var(--transition-slow);
  text-decoration: none;
  font-weight: var(--font-medium);
}

.skip-to-content:focus {
  top: 0;
}

/* ========================================
   LAYOUT - Container principal
   ======================================== */

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.app-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0;
}

.app-icon {
  font-size: var(--text-3xl);
}

.app-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ========================================
   BUTTONS - Boutons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Bouton icône */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  font-size: var(--text-xl);
}

/* Tailles de boutons */
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
}

.btn-add-habit {
  width: 100%;
  margin-top: 1rem;
  font-size: var(--text-base);
}

/* ========================================
   NAVIGATION TABS
   ======================================== */

.nav-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: 2rem;
  padding: var(--spacing-sm);
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-tab.active {
  color: white;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   VIEW CONTAINERS
   ======================================== */

.view-container {
  display: none;
}

.view-container.active {
  display: block;
}

.view-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}

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

.card-header {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ========================================
   PROGRESS SUMMARY
   ======================================== */

.progress-summary {
  margin-bottom: 1.5rem;
}

.summary-header {
  margin-bottom: var(--spacing-md);
}

.summary-date {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: 0.25rem;
}

.summary-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* Progress Bar */
.progress-container {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

/* ========================================
   HABITS LIST
   ======================================== */

.habits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 1rem 1.25rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
}

.habit-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.habit-item.completed {
  background: var(--success-light);
  border-color: var(--success);
}

/* Checkbox personnalisée */
.habit-checkbox {
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.habit-checkbox:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.1);
}

.habit-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
}

.habit-checkbox.checked::after {
  content: "✓";
  color: white;
  font-size: 1rem;
  font-weight: bold;
}

/* Icône de l'habitude */
.habit-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

/* Contenu de l'habitude */
.habit-content {
  flex: 1;
  min-width: 0;
}

.habit-name {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Streak (série) */
.habit-streak {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  flex-shrink: 0;
}

.streak-fire {
  font-size: 1rem;
}

.streak-count {
  color: var(--primary);
  font-weight: var(--font-semibold);
}

/* Couleurs de streak selon durée */
.habit-streak.streak-3 .streak-fire {
  filter: hue-rotate(0deg);
}

.habit-streak.streak-7 .streak-fire {
  filter: hue-rotate(20deg);
}

.habit-streak.streak-30 .streak-fire {
  filter: hue-rotate(40deg);
}

.habit-streak.streak-100 .streak-fire {
  filter: hue-rotate(60deg);
}

/* Actions de l'habitude */
.habit-actions {
  display: flex;
  gap: var(--spacing-xs);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.habit-item:hover .habit-actions {
  opacity: 1;
}

.habit-action-btn {
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: var(--text-sm);
}

.habit-action-btn:hover {
  background: var(--primary);
  color: white;
}

/* ========================================
   MOTIVATIONAL QUOTE
   ======================================== */

.motivational-quote {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.quote-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.quote-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-style: italic;
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ========================================
   STATISTICS
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-slow);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

.stat-card.success .stat-value {
  color: var(--success);
}

.stat-card.warning .stat-value {
  color: var(--warning);
}

.stat-card.error .stat-value {
  color: var(--error);
}

/* ========================================
   HEATMAP
   ======================================== */

.heatmap-container {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow-x: auto;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(53, 1fr);
  gap: 3px;
  min-width: 700px;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--bg-tertiary);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.heatmap-cell:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.heatmap-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--spacing-sm) 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 20;
}

.heatmap-cell:hover .heatmap-tooltip {
  opacity: 1;
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--spacing-md);
}

.modal {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: var(--text-lg);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

/* Emoji Picker */
.emoji-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.emoji-option {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.emoji-option:hover {
  background: var(--bg-primary);
  transform: scale(1.1);
}

.emoji-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Color Picker */
.color-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  padding: var(--spacing-md);
}

.color-option {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.color-option:hover {
  transform: scale(1.15);
}

.color-option.selected {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.color-option.selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Frequency Options */
.frequency-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.radio-label:hover {
  background: var(--bg-tertiary);
}

.days-selector {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.day-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--text-xs);
}

.day-checkbox:hover {
  background: var(--bg-primary);
}

.day-checkbox.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========================================
   SETTINGS
   ======================================== */

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

.settings-section h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.setting-item {
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  font-size: var(--text-sm);
}

.setting-description {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.storage-info {
  margin-top: 0.5rem;
}

.storage-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.storage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.storage-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  z-index: 2000;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.toast-icon {
  font-size: var(--text-lg);
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.empty-state-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--spacing-sm);
}

.empty-state-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* ========================================
   CALENDAR VIEW
   ======================================== */

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.calendar-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.calendar-grid {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.calendar-weekday {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  padding: 0.25rem;
  position: relative;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day:not(.empty):hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.calendar-day.today {
  border-color: var(--primary);
  background: var(--primary-light);
}

.calendar-day.completed {
  background: var(--success-bg);
  border-color: var(--success);
}

.calendar-day.partial {
  background: var(--warning-bg);
  border-color: var(--warning);
}

.calendar-day.future {
  opacity: 0.5;
  cursor: not-allowed;
}

.calendar-day.future:hover {
  transform: none;
  border-color: transparent;
}

.calendar-day-number {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.calendar-day.completed .calendar-day-number,
.calendar-day.partial .calendar-day-number {
  color: var(--text-primary);
}

.calendar-day-dots {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-full);
}

.calendar-day.completed .calendar-day-dots {
  background: var(--success);
  color: white;
}

.calendar-day.partial .calendar-day-dots {
  background: var(--warning);
  color: var(--text-primary);
}

.calendar-day-habits {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.habit-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.habit-item.disabled .habit-checkbox {
  cursor: not-allowed;
}

.text-warning {
  color: var(--warning);
}

/* ========================================
   STREAK DANGER ALERT
   ======================================== */

.streak-danger-alert {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  animation: slideDown 0.3s ease;
}

.alert-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  margin: 0 0 0.5rem 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.alert-message {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.alert-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  flex-shrink: 0;
}

.alert-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
