@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: rgb(33.1380753138, 125.1882845188, 186.8619246862);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

code {
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  padding: 0.2em 0.4em;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  flex: 1;
  padding: 2rem 0;
}
@media (min-width: 992px) {
  .content-wrapper {
    padding: 3rem 0;
  }
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dfe6e9;
}
.page-header h1 {
  margin-bottom: 0.25rem;
}
.page-header .subtitle {
  color: #7f8c8d;
  font-size: 0.875rem;
}

.card-container {
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.card-container.canvas-card {
  min-height: 400px;
  padding: 2rem;
}

.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.btn-custom {
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.custom-card {
  background: white;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.custom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}
.custom-card .card-header-custom {
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dfe6e9;
  border-radius: 0.375rem 0.375rem 0 0;
  margin: -1.5rem -1.5rem 1.5rem;
}

.form-group-custom {
  margin-bottom: 1.5rem;
}
.form-group-custom label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}
.form-group-custom input, .form-group-custom select, .form-group-custom textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #dfe6e9;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group-custom input:focus, .form-group-custom select:focus, .form-group-custom textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.spinner::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #dfe6e9;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.navbar-custom {
  background-color: #2c3e50;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}
.navbar-custom .navbar-brand:hover {
  color: rgba(255, 255, 255, 0.9);
}
.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
  color: white;
}

.sidebar-nav {
  background-color: white;
  border-right: 1px solid #dfe6e9;
  height: calc(100vh - 56px);
  position: sticky;
  top: 56px;
  padding: 1.5rem 0;
}
.sidebar-nav .nav-item {
  margin-bottom: 0.25rem;
}
.sidebar-nav .nav-link {
  color: #2c3e50;
  padding: 0.625rem 1.5rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.sidebar-nav .nav-link:hover {
  background-color: #f8f9fa;
  color: #3498db;
}
.sidebar-nav .nav-link.active {
  border-left-color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
  font-weight: 500;
}

.breadcrumb-custom {
  background-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}
.breadcrumb-custom .breadcrumb-item.active {
  color: #7f8c8d;
}
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #95a5a6;
}

.scenario-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.holdings-table .avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.dashboard-card {
  transition: transform 0.2s ease;
}
.dashboard-card:hover {
  transform: translateY(-5px);
}
