/* General Styling */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* FOQUS AI - Brand Colors and Modern UI */
:root {
  /* Brand Colors */
  --primary: #0A58CA;
  --accent: #00ABF2;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --success: #0bbd8b;
  --warning: #ffa000;
  --danger: #dc3545;
  --dark: #343a40;
  --light: #f8f9fa;
  
  /* Status Colors */
  --info: #17a2b8;
  
  /* Text Colors */
  --light-bg: #f8f9fa;
  --dark-text: #333333;
  --medium-text: #5a5a5a;
  --light-text: #7a7a7a;
  
  /* Background Colors */
  --color-bg-light: #f8f9fa;
  --color-bg-white: #ffffff;
  
  /* Spacing and Shape */
  --border-radius: 1rem;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --card-border-radius: 1rem;
  --input-border-radius: 0.5rem;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  min-height: 100vh;
  display: flex;
}

/* Main Container */
.container {
  width: 95%;
  max-width: 1000px;
  background: var(--color-bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

/* Header Styling */
.app-header {
  margin-bottom: 30px;
  position: relative;
}

.app-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 15px auto 0;
  border-radius: 3px;
}

/* Typography */
h1 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.tagline {
  color: var(--light-text);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

h2 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

h3::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  margin-top: 5px;
  border-radius: 2px;
}

/* Upload Section */
.upload-section {
  background-color: rgba(1, 171, 241, 0.05);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

/* Image Preview */
.image-preview-container {
  position: relative;
  width: 300px;
  height: 300px;
  border: 2px dashed var(--primary-light);
  border-radius: var(--border-radius);
  margin: 0 auto 20px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background-color: rgba(1, 171, 241, 0.05);
}

.image-preview-container:hover {
  border-color: var(--primary);
  transform: scale(1.01);
  box-shadow: 0 5px 15px rgba(1, 171, 241, 0.2);
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  padding: 20px;
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

.upload-hint {
  font-size: 0.8rem;
  margin-top: 10px;
  color: var(--light-text);
  border-top: 1px dashed var(--primary-light);
  padding-top: 10px;
  width: 80%;
  text-align: center;
}

.rounded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--border-radius) - 2px);
  display: none;
}

/* Analysis Options */
.analysis-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.option-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
}

.option-group label {
  margin-bottom: 5px;
  color: var(--light-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.option-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--primary-light);
  border-radius: calc(var(--border-radius) / 2);
  background-color: var(--color-bg-white);
  color: var(--dark-text);
  cursor: pointer;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.option-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 171, 241, 0.2);
}

.option-group select:hover {
  border-color: var(--primary);
}

/* Button Styles */
.primary-btn, .secondary-btn {
  padding: 14px 25px;
  border: none;
  border-radius: calc(var(--border-radius) / 2);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  font-family: "Poppins", sans-serif;
}

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

.primary-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(1, 171, 241, 0.3);
}

.secondary-btn {
  background-color: white;
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.secondary-btn:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(1, 171, 241, 0.2);
}

.primary-btn:disabled, .secondary-btn:disabled {
  background-color: var(--light-text);
  color: white;
  border-color: var(--light-text);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* Upload Button Area */
.face-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.face-upload input {
  display: none; /* Hide the default file input */
}

/* Results Section */
.results-container {
  background-color: rgba(151, 231, 91, 0.05);
  border-radius: var(--border-radius);
  padding: 25px;
  margin-top: 20px;
  display: none; /* Initially hidden */
}

.results-header {
  margin-bottom: 20px;
  position: relative;
}

.results-subtitle {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 15px;
}

.results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
}

.results-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.processed-image-container, .insights-container {
  flex: 1;
  min-width: 300px;
}

.image-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 10px;
  overflow: hidden;
}

.image-caption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--light-text);
  font-style: italic;
}

.processed-image-container img {
  display: none;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: calc(var(--border-radius) / 2);
}

.results-card {
  background-color: var(--color-bg-white);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: left;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
}

.analysis-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--light-text);
  text-align: center;
  padding: 20px;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.placeholder-hint {
  font-size: 0.8rem;
  margin-top: 15px;
  color: var(--light-text);
  border-top: 1px solid rgba(1, 171, 241, 0.1);
  padding-top: 15px;
  width: 90%;
}

.analysis-content {
  padding: 10px;
}

.analysis-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.analysis-content b, .analysis-content strong {
  color: var(--primary-dark);
}

/* Progress Indicator */
.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.progress-bar {
  width: 100%;
  max-width: 500px;
  height: 8px;
  background-color: #eaeaea;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--dark-text);
  font-weight: 500;
}

/* Loading Elements */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 15px;
}

.loading-dots {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 20px;
}

.loading-dots:after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: dots 1.5s infinite ease-in-out;
}

@keyframes dots {
  0%, 100% {
    transform: translateX(0);
    background-color: var(--primary);
  }
  33% {
    transform: translateX(30px);
    background-color: var(--accent);
  }
  66% {
    transform: translateX(-30px);
    background-color: var(--primary-dark);
  }
}

/* Animation for analysis content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Error and Success Messages */
.error-message {
  color: #e74c3c;
  font-weight: 500;
  padding: 15px;
  border-left: 3px solid #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 4px;
  margin-bottom: 15px;
}

.success-message {
  color: #27ae60;
  font-weight: 500;
  padding: 15px;
  border-left: 3px solid #27ae60;
  background-color: rgba(39, 174, 96, 0.1);
  border-radius: 4px;
  margin-bottom: 15px;
  animation: fadeIn 0.5s ease-out;
}

/* Copy Button */
.copy-button {
  background-color: var(--primary-light);
  color: white;
  border: none;
  border-radius: calc(var(--border-radius) / 2);
  padding: 8px 15px;
  margin-top: 15px;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-end;
}

.copy-button:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

/* Depth Notification */
.depth-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: calc(var(--border-radius) / 2);
  box-shadow: var(--shadow);
  transition: opacity 0.5s ease-in-out;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

/* Share Panel */
.share-panel {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  padding: 15px 25px;
  border-radius: calc(var(--border-radius) / 2);
  box-shadow: var(--shadow);
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
  animation: fadeIn 0.3s ease-out;
}

.share-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.share-options {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 5px;
}

.share-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: white;
  font-size: 1.2rem;
}

.share-twitter {
  background-color: #1DA1F2;
}

.share-facebook {
  background-color: #4267B2;
}

.share-email {
  background-color: #D44638;
}

.share-link {
  background-color: var(--accent);
}

.share-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.share-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.share-close:hover {
  opacity: 1;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
  color: var(--light-text);
  font-size: 0.9rem;
}

.footer-colors {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.color-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.color-box.primary {
  background-color: var(--primary);
}

.color-box.secondary {
  background-color: var(--accent);
}

/* Drag & Drop Visual */
.drag-active {
  border: 2px dashed var(--accent);
  background-color: rgba(151, 231, 91, 0.1);
  animation: pulse 1.5s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
    width: 100%;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .image-preview-container {
    width: 250px;
    height: 250px;
  }
  
  .results-flex {
    flex-direction: column;
  }
  
  .option-group {
    min-width: 100%;
  }
  
  .results-actions {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .primary-btn, .secondary-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app-header::after {
    width: 40px;
  }
  
  .image-preview-container {
    width: 200px;
    height: 200px;
  }
  
  .upload-icon {
    font-size: 2.5rem;
  }
  
  .results-container, .upload-section {
    padding: 15px;
  }
  
  .results-card {
    padding: 15px;
  }
  
  h3::after {
    margin-top: 3px;
    height: 1px;
  }
}

/* Sidebar Styles */
#sidebar {
  width: 250px;
  background-color: var(--primary);
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: 100vh;
  z-index: 1030;
  transition: var(--transition);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

#sidebar.collapsed {
  transform: translateX(-100%);
}

#sidebar .sidebar-brand {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

#sidebar .sidebar-brand-icon {
  color: var(--accent);
  font-size: 1.5rem;
}

#sidebar .sidebar-brand-text {
  color: white;
  font-weight: 700;
}

#sidebar .sidebar-user {
  padding: 0 1.5rem;
  text-align: center;
}

#sidebar .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem;
}

#sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: var(--transition);
}

#sidebar .nav-link i {
  font-size: 1.1rem;
  margin-right: 0.75rem;
  display: inline-flex;
}

#sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

#sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

#sidebar .sidebar-divider {
  margin: 1rem 0;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Content Wrapper */
.content-wrapper {
  flex: 1;
  margin-left: 250px;
  padding: 2rem;
  transition: var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper.expanded {
  margin-left: 0;
}

.content-header {
  background-color: var(--color-bg-white);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content {
  padding: 1.5rem;
  flex: 1;
}

/* User Avatar */
.user-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
}

/* Card Styles */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Metric Cards */
.metric-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100%;
}

.metric-card.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
}

.metric-card.success {
  background: linear-gradient(135deg, #20bf6b 0%, #0bbd8b 100%);
  color: white;
}

.metric-card.info {
  background: linear-gradient(135deg, #2d98da 0%, #45aaf2 100%);
  color: white;
}

.metric-card.warning {
  background: linear-gradient(135deg, #f7b731 0%, #ffa000 100%);
  color: white;
}

.metric-title {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
}

.metric-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

/* Quick Access Icons */
.quick-access-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.bg-primary-soft {
  background-color: rgba(0, 171, 242, 0.15);
}

.bg-success-soft {
  background-color: rgba(157, 232, 95, 0.15);
}

.bg-info-soft {
  background-color: rgba(0, 171, 242, 0.15);
}

.bg-warning-soft {
  background-color: rgba(255, 204, 0, 0.15);
}

/* Table Styles */
.table-wrapper {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table-wrapper .table {
  margin-bottom: 0;
}

.table thead th {
  background-color: rgba(0, 0, 0, 0.02);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--light-text);
  padding: 0.75rem 1rem;
  border-top: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Enhanced Button Styles */
.btn {
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(10, 88, 202, 0.25);
  outline: none;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: #084aa1;
  border-color: #084aa1;
  color: #fff;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #fff;
}

.btn-secondary:hover, 
.btn-secondary:focus {
  background-color: #5a6268;
  border-color: #5a6268;
  color: #fff;
}

.btn-success {
  background-color: var(--success);
  border-color: var(--success);
  color: #fff;
}

.btn-success:hover, 
.btn-success:focus {
  background-color: #09a378;
  border-color: #09a378;
  color: #fff;
}

.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-danger:hover, 
.btn-danger:focus {
  background-color: #c82333;
  border-color: #c82333;
  color: #fff;
}

.btn-warning {
  background-color: var(--warning);
  border-color: var(--warning);
  color: #212529;
}

.btn-warning:hover, 
.btn-warning:focus {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #212529;
}

.btn-info {
  background-color: var(--info);
  border-color: var(--info);
  color: #fff;
}

.btn-info:hover, 
.btn-info:focus {
  background-color: #138496;
  border-color: #138496;
  color: #fff;
}

.btn-light {
  background-color: var(--light);
  border-color: #f8f9fa;
  color: #212529;
}

.btn-light:hover, 
.btn-light:focus {
  background-color: #e2e6ea;
  border-color: #e2e6ea;
  color: #212529;
}

.btn-dark {
  background-color: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.btn-dark:hover, 
.btn-dark:focus {
  background-color: #23272b;
  border-color: #23272b;
  color: #fff;
}

/* Outlined button variants */
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background-color: transparent;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
}

.btn-outline-secondary:hover, 
.btn-outline-secondary:focus {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-success {
  color: var(--success);
  border-color: var(--success);
  background-color: transparent;
}

.btn-outline-success:hover, 
.btn-outline-success:focus {
  color: #fff;
  background-color: var(--success);
  border-color: var(--success);
}

.btn-outline-danger {
  color: var(--danger);
  border-color: var(--danger);
  background-color: transparent;
}

.btn-outline-danger:hover, 
.btn-outline-danger:focus {
  color: #fff;
  background-color: var(--danger);
  border-color: var(--danger);
}

.btn-outline-warning {
  color: var(--warning);
  border-color: var(--warning);
  background-color: transparent;
}

.btn-outline-warning:hover, 
.btn-outline-warning:focus {
  color: #212529;
  background-color: var(--warning);
  border-color: var(--warning);
}

.btn-outline-info {
  color: var(--info);
  border-color: var(--info);
  background-color: transparent;
}

.btn-outline-info:hover, 
.btn-outline-info:focus {
  color: #fff;
  background-color: var(--info);
  border-color: var(--info);
}

.btn-outline-light {
  color: var(--light);
  border-color: var(--light);
  background-color: transparent;
}

.btn-outline-light:hover, 
.btn-outline-light:focus {
  color: #212529;
  background-color: var(--light);
  border-color: var(--light);
}

.btn-outline-dark {
  color: var(--dark);
  border-color: var(--dark);
  background-color: transparent;
}

.btn-outline-dark:hover, 
.btn-outline-dark:focus {
  color: #fff;
  background-color: var(--dark);
  border-color: var(--dark);
}

/* Button with rounded corners */
.btn-rounded {
  border-radius: 50rem;
}

/* Button with icon only */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon.btn-sm {
  width: 2rem;
  height: 2rem;
}

.btn-icon.btn-lg {
  width: 3rem;
  height: 3rem;
}

/* Button with ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: 50%;
  left: 50%;
  animation: ripple 1s;
  opacity: 0;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(10);
    opacity: 0;
  }
}

/* Loading spinner in button */
.btn .spinner-border {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.btn-sm .spinner-border {
  width: 1rem;
  height: 1rem;
}

.btn-lg .spinner-border {
  width: 1.5rem;
  height: 1.5rem;
}

/* Utility Classes */
.cursor-pointer {
  cursor: pointer;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Dropzone */
.dropzone-container {
  border: 2px dashed #ccc;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  background-color: #f9f9f9;
}

.dropzone-container.active {
  border-color: var(--primary);
  background-color: rgba(10, 88, 202, 0.05);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: #adb5bd;
  margin-bottom: 1rem;
}

.dropzone-text {
  color: var(--text-light);
}

.image-preview-wrapper {
  margin-top: 1rem;
}

/* Upload progress */
.upload-progress {
  display: none;
  margin-top: 1rem;
}

.upload-progress.active {
  display: block;
}

.upload-progress-bar {
  height: 5px;
  background-color: var(--primary);
  border-radius: 5px;
  width: 0%;
  transition: width 0.2s ease;
}

/* Profile display */
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
}

.avatar-upload-overlay {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: var(--primary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid white;
}

.avatar-upload-overlay:hover {
  transform: scale(1.1);
}

/* Analysis cards */
.analysis-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.analysis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.analysis-card .emoji-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.analysis-card .tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.analysis-card .tag.positive {
  background-color: #e3fcef;
  color: var(--success);
}

.analysis-card .tag.warning {
  background-color: #fff7e3;
  color: var(--warning);
}

.analysis-card .tag.neutral {
  background-color: #e3f2fd;
  color: var(--primary);
}

.analysis-card .btn-view {
  color: #0A58CA;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50rem;
  border: 1px solid #0A58CA;
  transition: all 0.2s ease;
}

.analysis-card .btn-view:hover {
  background-color: #0A58CA;
  color: white;
  box-shadow: 0 4px 8px rgba(10, 88, 202, 0.2);
}

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

/* Modals */
.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.modal-footer {
  border-top-color: rgba(0, 0, 0, 0.05);
}

/* Responsive fixes */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .dropzone-container {
    padding: 1.5rem;
  }
}

/* Analysis button styles */
.action-btn {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

.action-btn.btn-primary {
  background-color: #0A58CA;
  color: white;
  border-color: #0A58CA;
}

.action-btn.btn-primary:hover {
  background-color: #084298;
  color: white;
  border-color: #084298;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(10, 88, 202, 0.2);
}

.action-btn.btn-outline-primary {
  background-color: transparent;
  color: #0A58CA;
  border-color: #0A58CA;
}

.action-btn.btn-outline-primary:hover {
  background-color: #0A58CA;
  color: white;
  border-color: #0A58CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(10, 88, 202, 0.2);
}

.action-btn.btn-outline-secondary {
  background-color: transparent;
  color: #6c757d;
  border-color: #6c757d;
}

.action-btn.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}