/* static/css/styles.css */
@font-face {
    font-family: 'clashgrotesk';
    src: url('/static/fonts/ClashGrotesk-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  body, html{
    font-family: 'clashgrotesk', sans-serif !important;
    background-color: #f8f9fa;
    min-height: 100vh;
  }

  input, select, textarea {
    font-size: 1rem !important;
  }

  .card .card-body > .row { --bs-gutter-x: 1rem !important; }
  @media (min-width: 768px){ .card .card-body > .row { --bs-gutter-x: 1.5rem !important; } }

  .main-container {
    min-height: calc(100vh - 56px); /* Subtract navbar height */
    display: flex;
    align-items: center;
    padding: 2rem 0;
}
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-header h1 {
    color: #0d6efd;
    font-size: 1.8rem;
}
.alert {
    margin-bottom: 1rem;
}


  /* Dashboard Container */
.dashboard-container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 56px);
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%) !important;
}

/* Welcome Section */
.welcome-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}

.logo-container img {
  filter: grayscale(0.2);
  transition: all 0.3s ease;
}

.logo-container:hover img {
  filter: grayscale(0);
  opacity: 1 !important;
}

/* Feature Cards */
.feature-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bs-primary) 0%, var(--bs-success) 50%, var(--bs-secondary) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.1);
}

.feature-card .card-body {
  padding: 2rem;
}

/* Feature Icons */
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background: rgba(var(--bs-primary-rgb), 0.12);
}

/* Modern Buttons */
.btn-modern {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-secondary.btn-modern:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Stats Section */
.stats-section {
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Typography Enhancements */
.display-6 {
  letter-spacing: -0.02em;
}

.card-title {
  color: #2d3748;
  letter-spacing: -0.01em;
}

.card-text {
  line-height: 1.6;
  color: #718096;
}

/* Responsive Design */
@media (max-width: 991px) {
  .dashboard-container {
      padding-top: 2rem;
  }
  
  .welcome-section {
      padding: 1.5rem 0;
  }
  
  .feature-card .card-body {
      padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
      padding-left: 1rem;
      padding-right: 1rem;
  }
  
  .welcome-section .d-flex {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
  }
  
  .feature-card .card-body {
      padding: 1.5rem;
  }
  
  .stat-item {
      padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .dashboard-container {
      padding-top: 1.5rem;
  }
  
  .welcome-section {
      padding: 1rem 0;
  }
  
  .btn-modern {
      padding: 0.625rem 1.25rem;
      font-size: 0.85rem;
  }
}

/* Notifications Management Container */
.notifications-container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 56px);
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

/* Welcome Section */
.welcome-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}

/* Action Buttons */
.action-buttons .btn-modern {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-secondary.btn-modern:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Stats Overview */
.stats-overview {
  margin-bottom: 2rem;
}

.stats-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-item-modern {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  min-width: 200px;
}

.stat-item-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.5rem;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #718096;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Table Container */
.table-container {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

.table-wrapper {
  overflow: hidden;
}

/* Modern Table */
.modern-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table-header-cell {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-header-cell:last-child {
  border-right: none;
}

.table-row {
  transition: all 0.2s ease;
}

.table-row:hover {
  background: rgba(0,0,0,0.02);
}

.table-cell {
  padding: 1rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-right: 1px solid rgba(0,0,0,0.02);
  font-size: 0.9rem;
  color: #4a5568;
}

.table-cell:last-child {
  border-right: none;
}

.font-medium {
  font-weight: 500;
  color: #2d3748;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-badge.bg-success {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #000000 !important;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.bg-warning {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.bg-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.bg-info {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #000000 !important;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Action Dropdown */
.action-dropdown .btn {
  border: 1px solid rgba(0,0,0,0.1);
  color: #6b7280;
  background: transparent;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.action-dropdown .btn:hover {
  background: #f3f4f6;
  border-color: rgba(0,0,0,0.2);
  color: #374151;
}

.dropdown-menu-modern {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-menu-modern .dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s ease;
}

.dropdown-menu-modern .dropdown-item:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Empty State */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: none;
}

.empty-state-content {
  max-width: 300px;
  margin: 0 auto;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: rgba(var(--bs-primary-rgb), 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.empty-icon i {
  font-size: 1.75rem;
  color: var(--bs-primary);
}

.empty-title {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-text {
  color: #718096;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Typography Enhancements */
.display-6 {
  letter-spacing: -0.02em;
}

/* Responsive Design */
@media (max-width: 991px) {
  .notifications-container {
      padding-top: 2rem;
  }
  
  .welcome-section {
      padding: 1.5rem 0;
  }
  
  .action-buttons {
      flex-direction: column;
      gap: 1rem !important;
  }
  
  .stats-grid {
      flex-direction: column;
  }
}

@media (max-width: 768px) {
  .notifications-container {
      padding-left: 1rem;
      padding-right: 1rem;
  }
  
  .welcome-section .d-flex {
      flex-direction: column;
      text-align: center;
      gap: 1.5rem;
  }
  
  .table-cell,
  .table-header-cell {
      padding: 0.75rem 1rem;
      font-size: 0.8rem;
  }
  
  .stat-item-modern {
      min-width: auto;
      width: 100%;
  }
}

@media (max-width: 576px) {
  .notifications-container {
      padding-top: 1.5rem;
  }
  
  .welcome-section {
      padding: 1rem 0;
  }
  
  .btn-modern {
      padding: 0.625rem 1.25rem;
      font-size: 0.85rem;
  }
  
  .table-responsive {
      font-size: 0.75rem;
  }
}

/* Auth Redirect Styles */
.auth-redirect-body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.loading {
    display: none;
}

/* Password Strength Indicator - Remove inline styles */
.password-strength-hidden {
    display: none;
}

/* File Validation Styles */
.file-validation-feedback {
  border-radius: 0.375rem;
  font-size: 0.875rem;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Drag and drop styling */
.drag-over {
  background-color: var(--bs-primary-bg-subtle);
  border: 2px dashed var(--bs-primary);
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
}

/* Enhanced file input styling */
input[type="file"].is-valid {
  border-color: var(--bs-success);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-success-rgb), 0.25);
}

input[type="file"].is-invalid {
  border-color: var(--bs-danger);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-danger-rgb), 0.25);
}

/* Success state styling */
.file-validation-feedback.alert-success {
  background-color: rgba(var(--bs-success-rgb), 0.1);
  border-color: var(--bs-success);
  color: var(--bs-success-text-emphasis);
}

/* Error state styling */
.file-validation-feedback.alert-danger {
  background-color: rgba(var(--bs-danger-rgb), 0.1);
  border-color: var(--bs-danger);
  color: var(--bs-danger-text-emphasis);
}

/* Info state styling */
.file-validation-feedback.alert-info {
  background-color: rgba(var(--bs-info-rgb), 0.1);
  border-color: var(--bs-info);
  color: var(--bs-info-text-emphasis);
}

/* File input container hover effect */
.file-input-container:hover input[type="file"] {
  border-color: var(--bs-primary);
  transition: border-color 0.15s ease-in-out;
}
