/* Layout Panels */
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

/* Top Navbar */
.navbar {
  background-color: #334155;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-grow: 1;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.navbar-links a:hover {
  color: #cbd5e1;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}



/* Layout Wrapper & Panels */
.content-wrapper {
  padding-top: 60px;
}

.container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.left-panel {
  width: 250px;
  background: #2c3e50;
  color: white;
  padding: 20px;
}

.middle-panel {
  flex: 1;
  background: white;
  padding: 30px;
  overflow-y: auto;
}

.right-panel {
  width: 25%;
  background: #ecf0f1;
  padding: 20px;
  overflow-y: auto;
}

/* Sidebar Navigation */
.step-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.step-list li {
  margin-bottom: 12px;
  padding: 8px 0;
}

.step-list a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 6px 12px;
  border-radius: 4px;
}

.step-list a:hover {
  background-color: #475569; /* Slate-600 */
}

.step-list a.active {
  font-weight: bold;
  background-color: #2563eb; /* Consistent blue */
  color: #fff;
}

/* KPI Cards & Panels */
.kpi-card-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kpi-card {
  background: #f9f9f9;
  border-left: 5px solid #3498db;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.ai-insights {
  list-style-type: disc;
  padding-left: 20px;
}

/* Button Styles */
.toggle-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
}

.toggle-btn:hover {
  background: #0056b3;
}

/* Login Screen */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f0f4f8;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 30px;
  color: #334155;
}

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

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

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.primary-btn {
  background: #007bff;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.primary-btn:hover {
  background: #0056b3;
}

.error-msg {
  color: red;
  margin-top: 15px;
  display: none;
}

.required {
  color: red;
}

/* Company Selection Screen */
.company-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.company-list button {
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #ccc;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.company-list button:hover {
  background-color: #e2e8f0;
  border-color: #007bff;
  color: #007bff;
}

.company-name {
  font-weight: bold;
  color: #1e40af; /* Tailwind's blue-800 for good contrast */
}

/* Spinner implementation */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #ccc;
  border-top: 6px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

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

.hidden {
  display: none;
}

#loading-overlay.hidden {
  display: none !important;
}

/* Global Save Button Style */
#saveBtn {
  background-color: #00aaff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Save button turns green after success */
#saveBtn.saved {
  background-color: #28a745;
}
