html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
}

h1:focus {
  outline: none;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: fadeIn 0.5s ease-in-out;
}

.main {
  flex: 1;
  padding: 1.5rem;
}

.sidebar {
  background-image: linear-gradient(180deg, #2c3e50 0%, #3498db 100%);
  color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.top-row {
  background-color: #f7f7f7;
  border-bottom: 1px solid #d6d5d5;
  justify-content: flex-end;
  height: 3.5rem;
  display: flex;
  align-items: center;
  padding: 1rem;
}

.oi {
  width: 2rem;
  font-size: 1.1rem;
  vertical-align: text-top;
  top: -2px;
}

.nav-item {
  padding: 0.5rem 1rem;
}

.nav-item:first-of-type {
  padding-top: 1rem;
}

.nav-item:last-of-type {
  padding-bottom: 1rem;
}

.nav-item ::deep a {
  color: #ffffff;
  margin: 6px 12px;
  transition: all 0.3s ease;
  border-radius: 8px;
  height: 3rem;
  display: flex;
  align-items: center;
  line-height: 3rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.nav-item ::deep a:before {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
}

.nav-item ::deep a:hover:before {
  width: 100%;
}

.nav-item ::deep a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateX(5px);
}

.nav-item ::deep a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.navbar-toggler {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-scrollable {
  height: calc(100vh - 3.5rem);
  overflow-y: auto;
}

.content {
  padding-top: 1.1rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

article {
  flex: 1;
}

@media (min-width: 641px) {
  .page {
    flex-direction: row;
  }

  .sidebar {
    width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .top-row {
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .navbar-toggler {
    display: none;
  }
}

/* Mobile adjustments */
@media (max-width: 640.98px) {
  .navbar-toggler {
    display: block;
  }

  .top-row.auth {
    justify-content: space-between;
  }

  .top-row a,
  .top-row .btn-link {
    margin-left: 0;
  }

  .collapse {
    display: none;
  }
}

/* Loading and error UI */
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: #3498db;
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
  animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Bootstrap Utilities */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Bootstrap Grid Adjustments */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* Bootstrap Spacing */
.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

/* Bootstrap Card Styles */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

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

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}
.welcome-section {
  animation: fadeIn 0.5s ease-in-out;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item .oi {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.animate-text {
  background: linear-gradient(45deg, #2c3e50, #3498db);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 3s ease infinite;
}

.quick-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-button {
  flex: 1;
  min-width: 200px;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Button Styling */
.telerik-button {
  transition: all 0.3s ease;
  margin: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: linear-gradient(45deg, #3498db, #2c3e50);
  border: none;
  color: white;
  font-weight: 500;
}

.telerik-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Bootstrap Responsive Breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home Page Specific Styles */
.home-container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-content {
  text-align: center;
  margin-bottom: 2rem;
}

.gradient-text {
  background: linear-gradient(45deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.assistant-card,
.actions-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.assistant-input {
  width: 100%;
  margin-bottom: 1rem;
}

.ask-button {
  width: 100%;
}

.action-button {
  width: 100%;
  margin-bottom: 1rem;
}

.feature-icon {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 1rem;
}

/* Landing Page Styles */
.landing-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 0;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.cta-button {
  padding: 1rem 2rem !important;
  font-size: 1.1rem !important;
}

.benefits-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(var(--card-index) * 0.2s);
}

.benefit-card:hover {
  transform: translateY(-10px);
}

.benefit-card:nth-child(1) {
  --card-index: 1;
}
.benefit-card:nth-child(2) {
  --card-index: 2;
}
.benefit-card:nth-child(3) {
  --card-index: 3;
}
.benefit-card:nth-child(4) {
  --card-index: 4;
}

.features-showcase {
  padding: 6rem 0;
}

.feature-showcase-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
  animation-delay: calc(var(--item-index) * 0.3s);
}

.feature-showcase-item:nth-child(1) {
  --item-index: 1;
}
.feature-showcase-item:nth-child(2) {
  --item-index: 2;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.feature-list li {
  padding: 0.5rem 0;
  color: #666;
}

.feature-list li:before {
  content: "✓";
  color: #3498db;
  margin-right: 0.5rem;
}

.cta-section {
  background: linear-gradient(45deg, #2c3e50, #3498db);
  padding: 4rem 0;
  text-align: center;
  border-radius: 15px;
  margin: 4rem 0;
}

.cta-content {
  color: white;
}

.main-cta-button {
  padding: 1rem 3rem !important;
  font-size: 1.2rem !important;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }
}

/* Navigation Styles */
.navigation-wrapper {
  background: linear-gradient(180deg, #2c3e50 0%, #3498db 100%);
  height: 100%;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ensure navbar is visible in mobile view */
@media (max-width: 640.98px) {
  .navbar-toggler {
    display: block;
    color: white;
  }

  .collapse {
    display: none;
  }

  .collapse.show {
    display: block;
  }

  .nav-scrollable {
    background: linear-gradient(180deg, #2c3e50 0%, #3498db 100%);
    position: absolute;
    width: 100%;
    z-index: 1000;
  }
}

.chat-container {
  display: flex;
  height: calc(100vh - 64px);
  background: var(--kendo-color-base);
}

.chat-sidebar {
  width: 300px;
  background: white;
  border-right: 1px solid var(--kendo-color-base-hover);
  display: flex;
  flex-direction: column;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 1rem;
  border-radius: 8px;
  animation: fadeIn 0.3s ease-in-out;
}

.user-message {
  background: white;
  margin-left: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.assistant-message {
  background: white;
  margin-right: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.assistant-icon {
  width: 32px;
  height: 32px;
  background: var(--kendo-color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.message-chart {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input {
  padding: 1rem;
  background: white;
  border-top: 1px solid var(--kendo-color-base-hover);
  display: flex;
  gap: 1rem;
}

.loading-indicator {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
}

.loading-indicator span {
  width: 8px;
  height: 8px;
  background: var(--kendo-color-primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.loading-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}
.loading-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

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

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

