/* Admin Panel Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* ========================================
   FUTURISTIC LOGIN PAGE STYLES
   ======================================== */

body.login-page {
  background: #0a0a1a;
  overflow: hidden;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(15, 52, 96, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(100, 200, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

body.login-page .login-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8vh 20px 40px;
  background: transparent;
}

/* Logo Styles */
.logo-wrapper {
  margin-bottom: 30px;
  animation: fadeInDown 1s ease;
}

.login-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.4))
          drop-shadow(0 0 40px rgba(100, 200, 255, 0.2))
          drop-shadow(0 0 60px rgba(100, 200, 255, 0.1));
  transition: filter 0.3s ease, transform 0.3s ease;
  animation: logoGlow 4s ease-in-out infinite;
}

.login-logo:hover {
  filter: drop-shadow(0 0 25px rgba(100, 200, 255, 0.6))
          drop-shadow(0 0 50px rgba(100, 200, 255, 0.4))
          drop-shadow(0 0 80px rgba(100, 200, 255, 0.2));
  transform: scale(1.02);
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.4))
            drop-shadow(0 0 40px rgba(100, 200, 255, 0.2))
            drop-shadow(0 0 60px rgba(100, 200, 255, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(100, 200, 255, 0.5))
            drop-shadow(0 0 50px rgba(100, 200, 255, 0.3))
            drop-shadow(0 0 70px rgba(100, 200, 255, 0.15));
  }
}

/* Login Card */
body.login-page .login-card {
  position: relative;
  background: rgba(15, 20, 40, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(100, 200, 255, 0.1);
  animation: cardAppear 0.8s ease;
  overflow: hidden;
}

/* Animated border glow */
body.login-page .login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    transparent 85%,
    rgba(100, 200, 255, 0.8) 90%,
    rgba(100, 200, 255, 0.8) 95%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 12s linear infinite;
  z-index: 0;
}

/* Subtle static border */
body.login-page .login-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  border: 1px solid rgba(100, 200, 255, 0.15);
  z-index: 0;
  pointer-events: none;
}

@keyframes rotateBorder {
  0% { --border-angle: 0deg; transform: rotate(0deg); }
  100% { --border-angle: 360deg; transform: rotate(360deg); }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 50px 40px;
  background: rgba(10, 15, 30, 0.9);
  border-radius: 24px;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Login Title */
body.login-page .login-title {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-text {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #64c8ff 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.title-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(100, 200, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 3px;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Form Styles */
body.login-page .login-form .form-group {
  margin-bottom: 25px;
  position: relative;
}

body.login-page .login-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.login-page .login-form label svg {
  color: #64c8ff;
  opacity: 0.8;
}

body.login-page .login-form .form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(100, 200, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s ease;
}

body.login-page .login-form .form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

body.login-page .login-form .form-input:focus {
  outline: none;
  border-color: #64c8ff;
  background: rgba(100, 200, 255, 0.08);
  box-shadow:
    0 0 0 4px rgba(100, 200, 255, 0.1),
    0 0 30px rgba(100, 200, 255, 0.2);
}

.input-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #64c8ff, transparent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.form-group.focused .input-glow {
  width: 80%;
}

/* Futuristic Button */
.btn-futuristic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-futuristic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-futuristic:hover::before {
  left: 100%;
}

.btn-futuristic:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 30px rgba(15, 52, 96, 0.5),
    0 0 50px rgba(100, 200, 255, 0.3);
}

.btn-futuristic:active {
  transform: translateY(-1px);
}

/* Alert Styles for Login Page */
body.login-page .alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  animation: shake 0.5s ease;
}

body.login-page .alert-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

body.login-page .alert-error svg {
  flex-shrink: 0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design for Login Page */
@media (max-width: 480px) {
  .login-logo {
    max-width: 220px;
  }

  .card-content {
    padding: 35px 25px;
  }

  .title-text {
    font-size: 1.6rem;
  }

  .title-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }

  .btn-futuristic {
    padding: 16px 24px;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
}

/* ========================================
   END FUTURISTIC LOGIN PAGE STYLES
   ======================================== */

/* Navigation */
.admin-nav {
  background: #1a1a2e;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-menu a:hover {
  color: #64b5f6;
}

.nav-logout {
  color: #ff6b6b !important;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 15px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-title {
  text-align: center;
  margin-bottom: 30px;
  color: #1a1a2e;
  font-size: 2rem;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-footer a {
  color: #0f3460;
  text-decoration: none;
}

/* Dashboard Container */
.dashboard-container,
.form-container,
.analytics-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.dashboard-header,
.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.dashboard-header h1,
.analytics-header h1 {
  font-size: 2rem;
  color: #1a1a2e;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  font-size: 2.5rem;
  color: #2563eb;
  opacity: 0.8;
}

.stat-content h3 {
  font-size: 2rem;
  color: #0f3460;
  margin-bottom: 5px;
}

.stat-content p {
  color: #666;
  font-size: 0.95rem;
}

/* Projects Section */
.projects-section,
.recent-activity {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.projects-section h2,
.recent-activity h2 {
  margin-bottom: 20px;
  color: #1a1a2e;
  font-size: 1.5rem;
}

/* Tables */
.projects-table-container,
.activity-table-container {
  overflow-x: auto;
}

.projects-table,
.activity-table,
.analytics-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th,
.activity-table th,
.analytics-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #1a1a2e;
  border-bottom: 2px solid #e0e0e0;
}

.projects-table td,
.activity-table td,
.analytics-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.projects-table tr:hover,
.activity-table tr:hover,
.analytics-table tr:hover {
  background: #f8f9fa;
}

.project-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.calendly-link {
  color: #0f3460;
  text-decoration: none;
}

.calendly-link:hover {
  text-decoration: underline;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #0f3460;
  color: white;
}

.btn-primary:hover {
  background: #16213e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
  display: block;
}

.actions {
  display: flex;
  gap: 8px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #0f3460;
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.form-help {
  display: block;
  margin-top: 5px;
  font-size: 0.875rem;
  color: #666;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

/* Range Input Styling */
.range-input-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.form-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #0f3460;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(15, 52, 96, 0.3);
}

.form-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #0f3460;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.range-value {
  min-width: 50px;
  text-align: center;
  font-weight: 600;
  color: #0f3460;
  background: #f0f4f8;
  padding: 5px 10px;
  border-radius: 6px;
}

/* Section Description */
.section-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
  margin-top: -10px;
}

/* Full Width Form Section */
.form-section-full {
  grid-column: 1 / -1;
}

/* Form Row for Side-by-Side Fields */
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group-half {
  flex: 1;
  min-width: 200px;
}

/* Knowledge Base Styling */
#knowledgeBaseContainer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.knowledge-item {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
}

.knowledge-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.knowledge-type-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.knowledge-type-badge.text {
  background: #e3f2fd;
  color: #1565c0;
}

.knowledge-type-badge.url {
  background: #e8f5e9;
  color: #2e7d32;
}

.knowledge-title {
  flex: 1;
}

.knowledge-content {
  width: 100%;
}

.knowledge-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.remove-knowledge-btn {
  margin-left: auto;
}

/* Variable Reference */
.variable-reference {
  background: #f0f4f8;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 12px 15px;
  margin-top: 15px;
  font-size: 0.9rem;
}

.variable-reference strong {
  display: block;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.variable-reference code {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #d63384;
  margin-right: 5px;
  margin-bottom: 5px;
  display: inline-block;
}

/* Badge Info */
.badge-info {
  background: #cfe2ff;
  color: #084298;
}

/* Project Form */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.form-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 30px;
}

.form-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-section h3 {
  margin-bottom: 20px;
  color: #1a1a2e;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.color-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-input-color {
  width: 60px;
  height: 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
}

.current-image {
  margin-top: 15px;
  text-align: center;
}

.current-image img {
  max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.current-image p {
  font-size: 0.875rem;
  color: #666;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

/* Analytics Filters */
.filters-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.filters-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.chart-card.full-width {
  grid-column: 1 / -1;
}

.chart-card h3 {
  margin-bottom: 20px;
  color: #1a1a2e;
}

.chart-content {
  min-height: 200px;
}

.bar-chart,
.line-chart {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.bar-wrapper {
  position: relative;
  background: #f0f0f0;
  border-radius: 6px;
  height: 30px;
  display: flex;
  align-items: center;
}

.bar-fill {
  background: #0f3460;
  height: 100%;
  border-radius: 6px;
  min-width: 2%;
  transition: width 0.5s ease;
}

.bar-value {
  position: absolute;
  right: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.line-chart {
  flex-direction: row;
  align-items: flex-end;
  height: 200px;
  gap: 10px;
  padding: 20px 0;
}

.line-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.line-wrapper {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: flex-end;
}

.line-fill {
  width: 100%;
  background: #0f3460;
  border-radius: 4px 4px 0 0;
  min-height: 5px;
  transition: height 0.5s ease;
}

.line-label {
  font-size: 0.75rem;
  color: #666;
  writing-mode: horizontal-tb;
  text-align: center;
}

.line-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.analytics-table-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.analytics-table-section h2 {
  margin-bottom: 20px;
  color: #1a1a2e;
  font-size: 1.5rem;
}

.table-container {
  overflow-x: auto;
}

.text-muted {
  color: #666;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    font-size: 0.9rem;
  }

  .nav-brand a {
    font-size: 1.2rem;
  }

  .dashboard-header h1,
  .analytics-header h1 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .filters-form {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions .btn {
    width: 100%;
  }

  .projects-table,
  .activity-table,
  .analytics-table {
    font-size: 0.85rem;
  }

  .projects-table th,
  .projects-table td,
  .activity-table th,
  .activity-table td,
  .analytics-table th,
  .analytics-table td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .login-card {
    padding: 30px 20px;
  }

  .dashboard-container,
  .form-container,
  .analytics-container {
    padding: 20px 10px;
  }

  .projects-section,
  .recent-activity,
  .form-section,
  .chart-card,
  .analytics-table-section {
    padding: 20px 15px;
  }
}
