/* Base Typography */
:root {
  --primary-color: #8AD317; /* Bright green from the logo's "O" */
  --secondary-color: #212529; /* Dark gray/black from "CROSS" */
  --accent-color: #FF5E3A; /* Coral/orange from "VER" */
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #495057;
  --text-color: #212529;
  --border-color: #dee2e6;
  --success-color: #8AD317; /* Updated to match brand green */
  --warning-color: #FFA26B; /* Lighter shade of the accent color */
  --danger-color: #FF5E3A; /* Match accent color */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html, body { 
  background-color: #fff; 
  color: var(--text-color); 
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* Typography Refinements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600; /* Make headers slightly bolder */
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

p {
  font-size: 14px;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}
a{
  text-decoration: none;
}
li{
  font-size: .9rem;
}

/* Sidebar Styling */
.menu-panel {
  background-color: #fff;
  border-right: 1px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.menu-panel .nav-link {
  padding: 0.75rem 1rem;
  color: var(--dark-gray);
  transition: var(--transition);
  border-radius: 6px !important;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

.menu-panel .nav-link:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.menu-panel .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.menu-panel .nav-link i {
  margin-right: 10px;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.menu-panel hr {
  margin: 1rem 0;
  opacity: 0.2;
}

/* Cards and Feed Items */
.card {
  background-color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feed-item {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  border-radius: 0 !important;
}

.feed-item:hover {
  background-color: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-weight: 700; /* Make card titles more prominent */
  font-size: 1.1rem;
  line-height: 1.4;
}

.card-subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Panels Styling */
.central-panel {
  background-color: #fff;
  border-right: 1px solid var(--border-color);
}

.right-panel {
  background-color: var(--light-gray);
  border-top-left-radius: 12px !important;
  border-bottom-left-radius: 12px !important;
  box-shadow: inset 2px 0 5px -2px rgba(0,0,0,0.1);
}

.scrollable-panel {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}

.scrollable-panel::-webkit-scrollbar {
  width: 6px;
}

.scrollable-panel::-webkit-scrollbar-thumb {
  background-color: var(--medium-gray);
  border-radius: 0;
}

.scrollable-panel::-webkit-scrollbar-track {
  background: transparent;
}

/* Icon Bar */
.icon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.icon-bar i {
  font-size: 1.25rem;
  color: var(--dark-gray);
  cursor: pointer;
  transition: var(--transition);
}

.icon-bar i:hover {
  color: var(--primary-color);
}

/* Badges & Status */
.badge {
  padding: 0.4em 0.8em;
  font-weight: 500;
  border-radius: 4px !important;
  font-size: 0.75rem;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Breakout Scale Colors */
.bs-1 { color: #8AD317; } /* Green */
.bs-2 { color: #A2E03A; } /* Lighter green */
.bs-3 { color: #FFC163; } /* Light orange */
.bs-4 { color: #FFB347; } /* Medium orange */
.bs-5 { color: #FF8A3C; } /* Darker orange */
.bs-6 { color: #FF5E3A; } /* Coral/red from logo */

/* Form Elements */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), 
.form-select {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 6px !important;
  padding: 0.75rem;
  transition: var(--transition);
  font-size: 0.9rem;
}

input:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

/* Buttons */
.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px !important;
  font-weight: 500;
  transition: var(--transition);
}

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

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

.btn-secondary {
  background-color: var(--medium-gray);
  border-color: var(--medium-gray);
  color: var(--dark-gray);
}

.btn-secondary:hover {
  background-color: var(--dark-gray);
  border-color: var(--dark-gray);
  color: white;
}

/* Modals */
.modal-content {
  border-radius: 8px !important;
  border: none;
  box-shadow: var(--shadow-md);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem;
}

/* Custom Dropdown */
.custom-dropdown {
  border-radius: 8px !important;
  box-shadow: var(--shadow-md);
  border: none;
}

/* Bootstrap Custom Overrides */
.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.dropdown-menu {
  border-radius: 8px !important;
  border: none;
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: 4px !important;
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background-color: var(--light-gray);
}

/* Detail Panel Placeholder */
#detailPanel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background-color: #fff;
  border-radius: 0 !important;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
  .menu-panel {
	position: fixed;
	left: -280px;
	height: 100%;
	z-index: 1030;
  }
  
  .menu-panel.show {
	left: 0;
  }
  
  .central-panel, .right-panel {
	width: 100%;
  }
}

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

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

/* Bootstrap Icons Fix */
.bi-bluesky::before {
  content: "";
  background-color: currentColor;
  -webkit-mask: url("../core/images/bluesky.svg") no-repeat 50% 50%;
  mask: url("../core/images/bluesky.svg") no-repeat 50% 50%;
  -webkit-mask-size: cover;
  mask-size: cover;
  height: 16px;
  width: 16px;
  display: inline-block;
}


/* Scale Metrics Styling */
.scale-metrics-container {
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.scale-metrics-container:hover {
  box-shadow: var(--shadow-md);
}

.metric-group {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.metric-group:last-child {
  border-bottom: none;
}

.metric-header {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.metric-item {
  font-size: 0.85rem;
  padding: 0.35rem 0;
}

.metric-label {
  font-weight: 500;
}

.metric-value.badge {
  padding: 0.4em 0.8em;
  font-weight: 500;
  border-radius: 4px !important;
}

.metric-value.badge.bg-light {
  background-color: var(--light-gray) !important;
  color: var(--dark-gray) !important;
  border: 1px solid var(--border-color);
}

.metric-value.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Animation for Scale Metrics */
.scale-metrics-container {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-item {
  animation: slideDown 0.3s ease-in-out;
  animation-fill-mode: both;
}

/* Stagger animation for multiple items */
.metric-item:nth-child(1) { animation-delay: 0.05s; }
.metric-item:nth-child(2) { animation-delay: 0.1s; }
.metric-item:nth-child(3) { animation-delay: 0.15s; }
.metric-item:nth-child(4) { animation-delay: 0.2s; }
.metric-item:nth-child(5) { animation-delay: 0.25s; }