/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.95);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
  color: #3498db;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav ul li a:hover, nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

nav ul li a i {
  font-size: 1rem;
}

/* Home Section Styles */
.home-content {
  padding: 60px 20px;
}

.home-banner {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
  margin-bottom: 60px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.banner-icon {
  margin-bottom: 30px;
  color: #3498db;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.home-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.home-banner p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.feature-item h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
}

/* Main Content Styles */
main {
  padding: 40px 0;
}

.section {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

/* Home Section */
.home-content {
  text-align: center;
  padding: 60px 20px;
}

.home-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.home-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #666;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Form Styles */
.form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #2c3e50;
}

.input-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

/* Authentication Styles */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.auth-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 3rem;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}

.auth-header h2 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.auth-header p {
  color: #666;
  font-size: 1rem;
}

.auth-form {
  max-width: 100%;
  margin: 0;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.2);
  transform: translateY(-2px);
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #3498db;
  font-size: 1.1rem;
  z-index: 1;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px 50px 15px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.auth-btn {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.auth-footer p {
  color: #666;
  font-size: 14px;
}

.auth-footer a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Analysis Section Styles */
.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  text-align: center;
  justify-content: center;
}

.section-header i {
  font-size: 2.5rem;
  color: #3498db;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0;
  color: #2c3e50;
}

.analysis-steps {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 350px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.step-header h3 {
  margin: 0;
  color: #2c3e50;
}

.file-upload-wrapper {
  position: relative;
  border: 2px dashed #3498db;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f0f8ff;
}

.file-upload-wrapper:hover {
  background-color: #e3f2fd;
  border-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.upload-icon {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 20px;
}

.file-upload-text {
  display: block;
  color: #666;
  font-size: 1rem;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.image-preview {
  margin-top: 20px;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.upload-progress {
  margin-top: 20px;
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.analysis-result {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  text-align: center;
  justify-content: center;
}

.result-header i {
  font-size: 2rem;
  color: #3498db;
}

.result-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.result-item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.result-item h4 i {
  color: #667eea;
  font-size: 1.3rem;
}

.result-item p strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34495e;
}

.result-item p strong i {
  color: #764ba2;
  font-size: 1rem;
}

/* History Section Styles */
#history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.history-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.history-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.history-item h4 {
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-item h4 i {
  color: #3498db;
}



/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    min-height: 100vh;
  }
  
  header {
    padding: 5px 0;
  }
  
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .logo i {
    font-size: 1rem;
  }
  
  .logo h1 {
    font-size: 0.85rem;
    margin: 0;
  }
  
  nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0;
  }
  
  nav ul li a {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  nav ul li a i {
    font-size: 0.7rem;
  }
  
  /* Fix input icon issue on mobile */
  .input-wrapper {
    position: relative;
  }
  
  .input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #667eea;
  }
  
  .form-group input,
  .form-group select {
    padding-left: 35px;
    padding-right: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .home-banner {
    padding: 40px 15px;
    margin-bottom: 40px;
  }
  
  .home-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .home-banner p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .cta-buttons .btn {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
    max-width: 200px;
  }
  
  .home-features {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 40px;
  }
  
  .feature-item {
    padding: 20px;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .feature-item p {
    font-size: 0.9rem;
  }
  
  .analysis-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .step {
    min-width: 100%;
    padding: 20px;
  }
  
  .step-header {
    margin-bottom: 20px;
  }
  
  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .step-header h3 {
    font-size: 1.1rem;
  }
  
  .file-upload-wrapper {
    padding: 30px 15px;
  }
  
  .upload-icon {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group input,
  .form-group select {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 20px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
  }
  
  .section-header i {
    font-size: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.3rem;
  }
  
  .result-item h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  
  .result-item p {
    font-size: 0.9rem;
  }
  
  #history-list {
    gap: 15px;
  }
  
  .history-item {
    padding: 20px;
  }
  
  .history-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  
  .history-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
  
  header {
    padding: 3px 0;
  }
  
  .header-content {
    padding: 0 8px;
    gap: 4px;
  }
  
  .logo {
    gap: 4px;
  }
  
  .logo i {
    font-size: 0.9rem;
  }
  
  .logo h1 {
    font-size: 0.75rem;
  }
  
  nav ul {
    gap: 3px;
  }
  
  nav ul li a {
    padding: 3px 8px;
    font-size: 0.65rem;
    border-radius: 12px;
  }
  
  nav ul li a i {
    font-size: 0.65rem;
  }
  
  /* Fix input icon issue on small mobile */
  .input-icon {
    left: 8px;
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group select {
    padding-left: 30px;
    padding-right: 10px;
    font-size: 0.8rem;
  }
  
  /* User status for small mobile */
  #user-status {
    gap: 6px;
  }
  
  .user-info {
    font-size: 0.7rem;
  }
  
  #logout-btn {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .home-banner {
    padding: 30px 12px;
  }
  
  .home-banner h2 {
    font-size: 1.3rem;
  }
  
  .home-banner p {
    font-size: 0.9rem;
  }
  
  .cta-buttons .btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  
  .section {
    padding: 15px;
  }
  
  .section-header h2 {
    font-size: 1.2rem;
  }
  
  .step {
    padding: 15px;
  }
  
  .step-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .step-header h3 {
    font-size: 1rem;
  }
  
  .file-upload-wrapper {
    padding: 25px 12px;
  }
  
  .upload-icon {
    font-size: 1.8rem;
  }
  
  .form-group input,
  .form-group select {
    padding: 10px 35px 10px 35px;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 9px 18px;
    font-size: 0.85rem;
  }
  
  .result-item h4 {
    font-size: 1rem;
  }
  
  .result-item p {
    font-size: 0.85rem;
  }
  
  .history-item {
    padding: 15px;
  }
  
  .history-item h4 {
    font-size: 0.9rem;
  }
  
  .history-item p {
    font-size: 0.8rem;
  }
  
  /* User status display for mobile */
  #user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .user-info {
    font-size: 0.8rem;
  }
  
  #logout-btn {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Analysis Section */
.analysis-steps {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 300px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.analysis-result {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.analysis-result h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}

#result-content {
  line-height: 1.8;
}

/* History Section */
#history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.history-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.history-item h4 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.history-item p {
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
}

/* Message Styles */
.form-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Footer Styles */
footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: #333;
  background-color: #f0f0f0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    margin: 5px 0;
  }
  
  .section {
    padding: 20px;
  }
  
  .home-content h2 {
    font-size: 2rem;
  }
  
  .home-content p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .analysis-steps {
    flex-direction: column;
  }
  
  .step {
    min-width: 100%;
  }
  
  #history-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  .home-content h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 15px;
  }
  
  .form-group input,
  .form-group select {
    padding: 8px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* AI Suggestions styles */
.ai-suggestions {
  margin-top: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.ai-suggestions-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.loading-spinner {
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-radius: 50%;
  border-top: 4px solid #667eea;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-section {
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #667eea;
}

.ai-section h5 {
  color: #667eea;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.ai-section p {
  margin: 0;
  line-height: 1.6;
  color: #495057;
}

#ai-suggestions {
  margin-top: 15px;
}

#ai-suggestions-content {
  margin-top: 15px;
}

/* AI button styles */
#get-ai-suggestions {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#get-ai-suggestions:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#get-ai-suggestions:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}
