/* Professional EduHT Chatbot Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --accent-color: #f59e0b;
  --danger-color: #ef4444;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Animations */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  overflow-x: hidden;
}

/* ================================
   CHAT BOX CONTAINER
================================ */
.chat-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: 600px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gray-200);
}

.chat-box.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ================================
   CHAT BOX HEADER
================================ */
.chat-box-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.chat-box-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.chat-box-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-box-header h3::before {
  content: '🤖';
  font-size: 1.25rem;
}

.chat-box-header p {
  margin: 0;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.chat-box-header p:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-box-header p i {
  font-size: 1rem;
}

/* ================================
   CHAT BOX BODY
================================ */
.chat-box-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chat-box-body::-webkit-scrollbar {
  width: 6px;
}

.chat-box-body::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

.chat-box-body::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.chat-box-body::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ================================
   MESSAGE BUBBLES
================================ */
.chat-box-body-send,
.chat-box-body-receive {
  max-width: 80%;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-xl);
  position: relative;
  word-wrap: break-word;
  animation: messageSlide 0.3s ease-out;
}

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

.chat-box-body-send {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.chat-box-body-send::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: var(--primary-color);
  border-bottom: 0;
  border-right: 0;
}

.chat-box-body-receive {
  background: var(--white);
  color: var(--gray-700);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.chat-box-body-receive::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: var(--white);
  border-bottom: 0;
  border-left: 0;
}

.chat-box-body-send p,
.chat-box-body-receive p {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 400;
}

.chat-box-body-send span,
.chat-box-body-receive span {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 500;
}

/* ================================
   TYPING INDICATOR
================================ */
.typing-indicator {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.typing-indicator p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-500);
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingDots 1.4s infinite ease-in-out;
}

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

@keyframes typingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================================
   CHAT BOX FOOTER
================================ */
.chat-box-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-box-footer button {
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.chat-box-footer button:hover {
  background: var(--gray-200);
  color: var(--gray-700);
  transform: translateY(-1px);
}

.chat-box-footer button:active {
  transform: translateY(0);
}

.chat-box-footer input {
  flex: 1;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: var(--gray-50);
}

.chat-box-footer input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chat-box-footer input::placeholder {
  color: var(--gray-400);
}

.chat-box-footer .send {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.chat-box-footer .send:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.chat-box-footer .send:active {
  transform: translateY(0);
}

/* ================================
   CHAT BUTTON (FLOATING)
================================ */
.chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-2xl);
  padding: 1rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  backdrop-filter: blur(10px);
}

.chat-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.chat-button:active {
  transform: translateY(-1px);
}

.chat-button span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-button span::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--secondary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.chat-button span::after {
  content: 'Voye Mesaj';
  font-weight: 600;
}

/* ================================
   MODAL STYLES
================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.show-modal {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal.show-modal .modal-content {
  transform: scale(1);
}

.modal-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-md);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--gray-600);
  font-size: 1.25rem;
}

.modal-close-button:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.modal h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-actions button {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--gray-700);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-actions button:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

.modal-actions button:active {
  transform: translateY(0);
}

.modal-actions button:first-child {
  background: var(--danger-color);
  color: var(--white);
  border-color: var(--danger-color);
}

.modal-actions button:first-child:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.modal-actions button:nth-child(2) {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.modal-actions button:nth-child(2):hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media (max-width: 480px) {
  .chat-box {
    width: calc(100vw - 20px);
    height: calc(100vh - 40px);
    bottom: 10px;
    right: 10px;
    border-radius: var(--radius-xl);
  }
  
  .chat-button {
    bottom: 10px;
    right: 10px;
    padding: 0.875rem 1.25rem;
  }
  
  .chat-button span::after {
    content: 'Chat';
  }
  
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 320px) {
  .chat-box-header {
    padding: 1rem;
  }
  
  .chat-box-body {
    padding: 1rem;
  }
  
  .chat-box-footer {
    padding: 1rem;
  }
}

/* ================================
   ACCESSIBILITY ENHANCEMENTS
================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.chat-box:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .chat-box-body-send {
    background: var(--gray-900);
    color: var(--white);
  }
  
  .chat-box-body-receive {
    background: var(--white);
    color: var(--gray-900);
    border: 2px solid var(--gray-900);
  }
}

/* ================================
   DARK MODE SUPPORT
================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1f2937;
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
  }
  
  body {
    background: var(--gray-900);
    color: var(--gray-100);
  }
  
  .chat-box-body-receive {
    background: var(--gray-800);
    color: var(--gray-100);
    border-color: var(--gray-600);
  }
  
  .chat-box-body-receive::after {
    border-right-color: var(--gray-800);
  }
}




* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Demo content for the page */
        .demo-content {
            padding: 50px 20px;
            text-align: center;
            color: white;
        }

        .demo-content h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .demo-content p {
            font-size: 1.2rem;
            margin-bottom: 30px;
        }

        /* Floating Boat Container */
        .floating-boat-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .floating-boat-container:hover {
            transform: scale(1.1);
        }

        /* Boat SVG Styling */
        .boat-svg {
            width: 80px;
            height: 60px;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
            animation: float 3s ease-in-out infinite;
        }

        /* Water waves animation */
        .waves {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 20px;
            background: linear-gradient(45deg, #4fc3f7, #29b6f6);
            border-radius: 50px;
            opacity: 0.7;
            animation: waves 2s ease-in-out infinite;
        }

        .waves::before,
        .waves::after {
            content: '';
            position: absolute;
            width: 80px;
            height: 15px;
            background: linear-gradient(45deg, #81c784, #66bb6a);
            border-radius: 50px;
            opacity: 0.6;
        }

        .waves::before {
            top: -8px;
            left: -10px;
            animation: waves 2s ease-in-out infinite 0.5s;
        }

        .waves::after {
            top: -5px;
            right: -10px;
            animation: waves 2s ease-in-out infinite 1s;
        }

        /* Tooltip */
        .tooltip {
            position: absolute;
            bottom: 100%;
            right: 0;
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            right: 20px;
            border: 5px solid transparent;
            border-top-color: rgba(0,0,0,0.8);
        }

        .floating-boat-container:hover .tooltip {
            opacity: 1;
            transform: translateY(0);
        }

        /* Notification badge */
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4444;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            animation: pulse 2s infinite;
        }

        /* Animations */
        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(-2deg);
            }
            50% {
                transform: translateY(-10px) rotate(2deg);
            }
        }

        @keyframes waves {
            0%, 100% {
                transform: scaleX(1) scaleY(1);
            }
            50% {
                transform: scaleX(1.1) scaleY(0.8);
            }
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.2);
                opacity: 0.7;
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .floating-boat-container {
                bottom: 20px;
                right: 20px;
            }
            
            .boat-svg {
                width: 60px;
                height: 45px;
            }
            
            .waves {
                width: 80px;
                height: 15px;
            }
        }

        /* Click ripple effect */
        .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.6);
            transform: scale(0);
            animation: ripple-animation 0.6s linear;
            pointer-events: none;
        }

        @keyframes ripple-animation {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }