/* Basic styling for the application */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  /* This class exists but isn't used by header/main currently */
  /* Keeping it in case it's used elsewhere */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Constrain Header and Main Content */
.header, 
.main-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Specific adjustments might be needed based on content */
.header {
  background-color: #3f51b5;
  color: white;
  /* Padding was 0 20px, keep horizontal padding */
  padding: 0 20px; 
  height: 60px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box; /* Add box-sizing for accurate width with padding */
}

.main-content {
    padding: 20px; /* Add padding to main content area */
    /* Optional: add a background or border if needed */
    /* background-color: white; */
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.05); */
}

/* Form styling */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #45a049;
}

/* Style header title */
.header h1 {
  margin: 0;
  font-size: 1.5em;
}

/* Container for navigation links */
.header-nav {
  display: flex;
  align-items: center;
}

/* Style header links as buttons */
.header-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  margin-left: 10px;
  border-radius: 4px;
  border: 1px solid white;
  transition: background-color 0.2s, color 0.2s;
}

.header-nav a:hover {
  background-color: white;
  color: #3f51b5;
}

/* Utility classes */
.error {
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
}

.success {
  color: #4CAF50;
  font-size: 14px;
  margin-top: 5px;
}

/* Dashboard tile grid styles */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5em;
}

.tool-tile {
  background-color: white;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.tool-tile:hover {
  transform: translateY(-5px);
}

.tool-tile a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
  font-size: 1.1em;
}

.tool-tile p {
  font-size: 0.9em;
  color: #555;
}

/* Sentiment Analysis Badge Styling - Force black text */
.badge-success,
.badge-danger,
.badge-secondary,
.badge-info {
  color: #000 !important; /* Force black text on all sentiment badges */
  font-weight: 500;
  border: 1px solid #ddd;
}

/* Individual badge background colors (keeping them distinct) */
.badge-success {
  background-color: #d4edda !important; /* Light green background */
}

.badge-danger {
  background-color: #f8d7da !important; /* Light red background */
}

.badge-secondary {
  background-color: #e2e3e5 !important; /* Light gray background */
}

.badge-info {
  background-color: #d1ecf1 !important; /* Light blue background */
} 

/* styles.css */
.spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

/* Action buttons grid layout (used across multiple apps) */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* Style tweaks for buttons inside action-grid */
.action-grid .btn {
  background-color: transparent !important;
  border-width: 1px;
  width: 100%;
  padding: .28rem .5rem;
  font-size: .85rem;
  border-radius: .45rem;
}

/* Force fullscreen dark backdrop */
#processingModal .modal-dialog {
  max-width: none;
  margin: 0;
}

#processingModal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.modal-backdrop.show {
  opacity: 0.5;
}

/* Keep Bootstrap default outline colors, only tweak hover background */
.action-grid .btn-outline-success:hover,
.action-grid .btn-outline-primary:hover,
.action-grid .btn-outline-secondary:hover,
.action-grid .btn-outline-danger:hover {
  background: #f8f9fa;
}

@media (max-width: 576px) {
  .action-grid { grid-template-columns: 1fr; }
}


