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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(to bottom, #e8dac8, #f5efe7);
  padding-bottom: 5rem;
}

/* Header and Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-top: 1px solid rgba(212, 184, 156, 0.2);
}

.header-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  background-color: rgba(243, 244, 246, 0.7);
  padding: 0.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.nav-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #d4b89c 0%, #e8dac8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.75rem;
}

.nav-tab:hover::before {
  opacity: 0.1;
}

.nav-tab.active {
  background: white;
  color: #2d2d2d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.nav-tab.active::before {
  opacity: 0;
}

.nav-tab i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

/* Keep all existing styles below this line */
/* News Section */
.news-content {
  padding: 1.5rem;
}

.news-item {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.875rem;
  color: #6b7280;
}

.news-item h3 {
  margin: 0.5rem 0;
  font-size: 1.125rem;
  color: #1f2937;
}

.news-item p {
  color: #4b5563;
}

/* Document Upload */
.document-form {
  padding: 1.5rem;
}

.file-upload-container {
  border: 2px dashed #d4b89c;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-container:hover {
  background-color: rgba(212, 184, 156, 0.1);
}

.file-input {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  cursor: pointer;
}

.file-upload-label i {
  color: #d4b89c;
}

.file-list {
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.file-item i {
  color: #d4b89c;
}

.remove-file,
.remove-photo {
  margin-left: auto;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
}

.camera-upload-container {
  text-align: center;
  margin: 1rem 0;
}

.camera-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #d4b89c;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  margin: 0 auto;
}

.hidden {
  display: none;
}

.photo-preview {
  margin-top: 1rem;
  position: relative;
}

.photo-preview img {
  max-width: 100%;
  border-radius: 0.5rem;
}

/* Forms */
.form {
  padding: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #d4b89c;
}

/* Buttons */
.btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(to right, #d4b89c, #e8dac8);
  color: white;
  font-weight: 500;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn i {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.btn:hover i {
  transform: translateX(0.25rem);
}

/* Chat Interface */
.chat-container {
  padding: 1.5rem;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.message-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin-right: 0.75rem;
  padding: 0.375rem;
  background-color: #e5e7eb;
  border-radius: 50%;
}

.message-content {
  background-color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  max-width: 80%;
}

.message.user {
  flex-direction: row-reverse;
}

.message.user .message-icon {
  margin-right: 0;
  margin-left: 0.75rem;
  background-color: #d4b89c;
  color: white;
}

.message.user .message-content {
  background-color: #d4b89c;
  color: white;
}

.chat-input-form {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

.chat-input:focus {
  outline: none;
  border-color: #d4b89c;
  box-shadow: 0 0 0 2px rgba(212, 184, 156, 0.2);
}

.chat-send-btn {
  padding: 0.75rem;
  background-color: #d4b89c;
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-send-btn:hover {
  opacity: 0.9;
}

/* Progress Tracking */
.progress-container {
  padding: 2rem;
}

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

.progress-section:last-child {
  margin-bottom: 0;
}

.progress-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.progress-title i {
  margin-right: 0.75rem;
  color: #d4b89c;
}

.progress-steps {
  position: relative;
  padding-left: 2rem;
}

.progress-steps::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #e5e7eb;
}

.progress-step {
  position: relative;
  padding-bottom: 1.5rem;
}

.progress-step:last-child {
  padding-bottom: 0;
}

.step-icon {
  position: absolute;
  left: -2rem;
  width: 2rem;
  height: 2rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon i {
  color: #9ca3af;
}

.progress-step.completed .step-icon i {
  color: #059669;
}

.progress-step.active .step-icon i {
  color: #d4b89c;
}

.step-content {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 0.75rem;
}

.step-content h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #4b5563;
  font-size: 0.875rem;
  margin-bottom: 5rem;
  background: linear-gradient(to right, rgba(212, 184, 156, 0.1), rgba(232, 218, 200, 0.1));
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(212, 184, 156, 0.2);
}

.footer-content {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #d4b89c;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  color: #4b5563;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.social-link:hover {
  color: #d4b89c;
  background-color: rgba(212, 184, 156, 0.1);
}

/* Loading Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotating {
  animation: rotate 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .nav-tab {
    padding: 0.5rem;
    flex-direction: column;
    text-align: center;
  }

  .nav-tab i {
    margin: 0 0 0.25rem 0;
  }

  .header-content {
    padding: 0.5rem;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }
  
  .card-header h1 {
    font-size: 1.5rem;
  }
  
  .form {
    padding: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

/* Mobile Navigation Animation */
@media (max-width: 480px) {
  .nav-tab {
    font-size: 0.75rem;
  }

  .nav-tab.active {
    transform: translateY(-4px);
  }
}