/* Custom styles for Gemini API Proxy */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
}

.card {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.card-header {
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.03);
}

.progress {
  height: 0.8rem;
}

/* API Keys table */
#apiKeysTable .progress {
  height: 10px;
  border-radius: 5px;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
  background-color: #f0f8ff; /* Light blue background when expanded */
  color: #0d6efd; /* Primary color for the text */
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-body {
  background-color: #f8f9fa;
}

/* Code examples */
pre {
  background-color: #272822;
  color: #f8f8f2;
  border-radius: 4px;
  padding: 1rem;
  max-height: 500px;
  overflow-y: auto;
}

code {
  font-family: 'Courier New', Courier, monospace;
}

/* API Key password toggle */
.password-toggle {
  cursor: pointer;
}

/* Progress bars */
.progress-bar.bg-success {
  background-color: #28a745 !important;
}

.progress-bar.bg-warning {
  background-color: #ffc107 !important;
}

.progress-bar.bg-danger {
  background-color: #dc3545 !important;
}

/* Badge spacing */
.badge {
  margin-left: 0.25rem;
}

/* Filter options */
.card-header.bg-light {
  background-color: #f8f9fa !important;
}

/* Make tables more readable */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Fix for nested progress bars in tables */
td .progress {
  margin-bottom: 0;
}

/* Fix for API key text overflow */
.input-group input[type="password"],
.input-group input[type="text"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dashboard styles */
.dashboard-stat {
  text-align: center;
  padding: 1.5rem;
}

.dashboard-stat .display-4 {
  font-weight: bold;
}

/* Form styles */
.form-label {
  font-weight: 500;
}

/* Table styles */
.table th {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 500;
}

/* Usage progress bars */
.usage-bar {
  height: 8px;
  margin-bottom: 2px;
}

/* API key card */
.api-key-card {
  transition: all 0.2s ease;
}

.api-key-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* User card */
.user-card {
  transition: all 0.2s ease;
}

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

/* Footer styles */
footer {
  margin-top: auto;
  padding: 1.5rem 0;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* Chart Containers */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
} 