/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
}

/* Toggle Switch Animation */
.toggle-dot {
    transition: transform 0.3s ease-in-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e0e7ff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #9376e0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7450d3;
}

/* Chat Bubble Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble {
    animation: fadeIn 0.3s ease-out;
}

/* Gradient Hover Effect for Buttons */
.gradient-btn {
    background: linear-gradient(135deg, #9376e0 0%, #e893cf 100%);
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    background: linear-gradient(135deg, #8365c9 0%, #d782be 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(147, 118, 224, 0.3);
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Focus Styles */
input:focus, select:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(147, 118, 224, 0.3);
}

/* Custom Utility Classes */
.text-gradient {
    background: linear-gradient(to right, #9376e0, #e893cf);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Utility Classes */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-2px);
}
/* Chat Styles */
.chat-bubble {
    border-radius: 18px;
    padding: 12px 16px;
    max-width: 80%;
    margin-bottom: 12px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.user-bubble {
    background-color: #8B5CF6;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background-color: #8B5CF6 !important;
    color: white !important;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.thinking {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: 18px;
    width: fit-content;
    position: relative;
    margin-bottom: 6px; /* Remove default margin */
}

.thinking span {
    width: 8px;
    height: 8px;
    border: 1px solid purple;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.thinking span:nth-child(1) {
    animation-delay: 0s;
}

.thinking span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Card of the Day */
.card-of-the-day {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.card-of-the-day:hover {
    background-color: #EDE9FE;
}

.card-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #8B5CF6;
}

.card-popup.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Button Styles */
.primary-button {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
}

.primary-button:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}

.primary-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(124, 58, 237, 0.2);
}

/* Mobile-specific robot enhancements */
@media (max-width: 640px) {
    .card-popup {
        width: 250px;
    }
}
/* Markdown Content Styles */
.markdown-content {
    line-height: 1.6;
}

.markdown-content h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.markdown-content p {
    margin-bottom: 0.75rem;
}

.markdown-content ul, .markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content li {
    margin-bottom: 0.25rem;
}

.markdown-content a {
    color: #7C3AED;
    text-decoration: underline;
}

.markdown-content blockquote {
    border-left: 4px solid #E9D5FF;
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #6B7280;
    font-style: italic;
}

.markdown-content code {
    background-color: #F3E8FF;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background-color: #F3E8FF;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
}

.markdown-content hr {
    border: 0;
    border-top: 1px solid #E9D5FF;
    margin: 1.5rem 0;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.markdown-content th, .markdown-content td {
    border: 1px solid #E9D5FF;
    padding: 0.5rem;
}

.markdown-content th {
    background-color: #F3E8FF;
    font-weight: 600;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: not-allowed; /* Change cursor to "not-allowed" */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #8B5CF6; /* Use your purple color */
}

input:focus + .slider {
  box-shadow: 0 0 1px #8B5CF6; /* Use your purple color */
}

input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 22px;
}

.slider.round:before {
  border-radius: 50%;
}

