/* 
 * Dashboard Styles
 * Common styles for the Water IQ Dashboard
 */

/* Card styling */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bg-gradient {
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Chat styling */
.chat-message {
  transition: opacity 0.3s;
}

.message-bubble {
  border-radius: 1rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-message .message-bubble {
  border-top-right-radius: 0 !important;
}

.ai-message .message-bubble {
  border-top-left-radius: 0 !important;
}

/* ChatGPT-like input styles */
.input-group {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  padding: 0.25rem;
}

#user_input {
  flex-grow: 1;
  border: none;
  padding: 10px 12px;
  font-size: 1rem;
  line-height: 1.5;
  background: transparent;
  box-shadow: none;
}

#user_input:focus {
  outline: none;
  box-shadow: none;
}

.input-group .btn {
  border-radius: 0.4rem;
  margin-right: 0.25rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button animations */
.btn {
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* DataTables customizations */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}

/* Visualization card styles */
.visualization-card {
  height: 100%;
  margin-bottom: 1.5rem;
}

.data-table-container {
  overflow-x: auto;
}

/* AI content styling */
.ai-content-container {
  min-height: 150px;
  max-height: 550px;
  overflow-y: auto;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Card header styles */
.card-header-primary {
  background-color: #007bff;
  color: white;
}

.card-header-success {
  background-color: #28a745;
  color: white;
}

.card-header-info {
  background-color: #17a2b8;
  color: white;
}

.card-header-dark {
  background-color: #343a40;
  color: white;
}

.card-header-secondary {
  background-color: #6c757d;
  color: white;
}

/* Chat styles */
.chat-container {
  max-height: 550px;
  overflow-y: auto;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
}
