:root{
  --blue:#003366;
  --yellow:#ffd000;
  --celeste:#e6f2ff;
  --white:#fff;
  --light-gray:#f8fafc;
  --border-gray:#e2e8f0;
  --text-gray:#64748b;
  --shadow: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);
}

*{box-sizing:border-box}

body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  margin:0;
  background:linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%);
  color:#1e293b;
  line-height:1.6;
  min-height:100vh;
}

header{
  background:linear-gradient(135deg,var(--blue) 0%,#1e40af 100%);
  color:var(--yellow);
  padding:24px 0;
  box-shadow:var(--shadow-lg);
  position:relative;
  overflow:hidden;
}

header::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tennis" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,208,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23tennis)"/></svg>');
  opacity:0.3;
}

.header-content{
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
  display:flex;
  align-items:center;
  gap:20px;
  position:relative;
  z-index:1;
}

.admin-link{
  margin-left:auto;
}

.admin-btn{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:8px;
  color:#ffffff;
  text-decoration:none;
  font-weight:500;
  font-size:0.85rem;
  transition:all 0.2s ease;
  backdrop-filter:blur(8px);
  position:relative;
}

.admin-btn:hover{
  background:rgba(255,255,255,0.25);
  border-color:rgba(255,255,255,0.3);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.admin-icon{
  font-size:0.9em;
  opacity:0.9;
}

.admin-text{
  font-weight:500;
  letter-spacing:0.3px;
}

.logo{
  flex-shrink:0;
  animation:float 3s ease-in-out infinite;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

@keyframes float{
  0%,100%{transform:translateY(0px)}
  50%{transform:translateY(-5px)}
}

.header-text h1{
  margin:0;
  font-size:2rem;
  font-weight:800;
  color:#ffffff;
  text-shadow:2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing:-0.025em;
}

.header-text p{
  margin:4px 0 0 0;
  font-size:1.1rem;
  font-weight:500;
  opacity:0.9;
}

.container{
  max-width:1100px;
  margin:32px auto;
  padding:0 24px;
}

.tabs{
  display:flex;
  gap:12px;
  margin:24px 0;
  background:#fff;
  padding:8px;
  border-radius:16px;
  box-shadow:var(--shadow);
  border:1px solid var(--border-gray);
}

.tab{
  padding:12px 24px;
  border:none;
  color:var(--blue);
  border-radius:12px;
  cursor:pointer;
  background:transparent;
  font-weight:600;
  font-size:0.95rem;
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}

.tab::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent);
  transition:left 0.5s;
}

.tab:hover::before{
  left:100%;
}

.tab:hover{
  background:var(--celeste);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,51,102,0.15);
}

.tab.active{
  background:linear-gradient(135deg,var(--blue),#1e40af);
  color:var(--yellow);
  box-shadow:0 4px 12px rgba(0,51,102,0.3);
  transform:translateY(-2px);
}

.card{
  background:#fff;
  border:1px solid var(--border-gray);
  border-radius:20px;
  padding:32px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}

.card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,var(--blue),var(--yellow),var(--blue));
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}

.card h3{
  margin:0 0 24px 0;
  font-size:1.5rem;
  font-weight:700;
  color:var(--blue);
  display:flex;
  align-items:center;
  gap:12px;
}

.card h3::before{
  content:'🏆';
  font-size:1.2em;
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:0.95rem;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

th{
  background:linear-gradient(135deg,var(--blue),#1e40af);
  color:var(--yellow);
  text-align:left;
  padding:16px 12px;
  font-weight:700;
  font-size:0.9rem;
  text-transform:uppercase;
  letter-spacing:0.05em;
  position:relative;
}

th::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:2px;
  background:var(--yellow);
}

td{
  padding:16px 12px;
  border-bottom:1px solid #f1f5f9;
  transition:background-color 0.2s ease;
}

tbody tr{
  transition:all 0.2s ease;
}

tbody tr:hover{
  background:#f8fafc;
  transform:scale(1.01);
}

tbody tr:nth-child(odd){
  background:var(--celeste);
}

tbody tr:nth-child(odd):hover{
  background:#dbeafe;
}


.footer{
  margin-top:48px;
  padding:32px 0;
  background:linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%);
  border-top:1px solid var(--border-gray);
  border-radius:20px 20px 0 0;
}

.footer-content{
  text-align:center;
  max-width:1100px;
  margin:0 auto;
  padding:0 24px;
}

.footer-content p{
  margin:8px 0;
  color:var(--text-gray);
  font-size:0.95rem;
}

.footer-credit{
  font-size:0.85rem !important;
  opacity:0.8;
}

.footer-credit strong{
  color:var(--blue);
  font-weight:700;
}

/* Players Search */
.search-container{
  margin-bottom:20px;
}

.search-input{
  width:100%;
  padding:12px 16px;
  border:2px solid var(--border-gray);
  border-radius:12px;
  font-size:1rem;
  background:#fff;
  transition:all 0.3s ease;
  box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

.search-input:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 4px 12px rgba(0,51,102,0.15);
  transform:translateY(-1px);
}

.search-input::placeholder{
  color:var(--text-gray);
  opacity:0.7;
}

/* Players Grid */
#playersGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:24px;
  margin-top:16px;
}

.player-card{
  background:#fff;
  border:1px solid var(--border-gray);
  border-radius:16px;
  padding:20px;
  box-shadow:var(--shadow);
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}

.player-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background:linear-gradient(90deg,var(--blue),var(--yellow),var(--blue));
}

.player-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}

.player-photo{
  position:relative;
  text-align:center;
  margin-bottom:16px;
}

.player-photo img{
  width:80px;
  height:80px;
  border-radius:50%;
  object-fit:cover;
  border:3px solid var(--blue);
  box-shadow:0 4px 12px rgba(0,51,102,0.2);
}

.player-rank{
  position:absolute;
  top:-5px;
  right:calc(50% - 60px);
  background:var(--blue);
  color:var(--yellow);
  width:24px;
  height:24px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.75rem;
  font-weight:700;
  box-shadow:0 2px 8px rgba(0,51,102,0.3);
}

.player-info h4{
  margin:0 0 16px 0;
  font-size:1.2rem;
  font-weight:700;
  color:var(--blue);
  text-align:center;
}

.player-stats{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1fr;
  gap:8px;
}

.stat{
  text-align:center;
  padding:6px 4px;
  background:#f8fafc;
  border-radius:6px;
  border:1px solid var(--border-gray);
  min-height:50px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.stat-label{
  display:block;
  font-size:1rem;
  margin-bottom:2px;
  line-height:1;
}

.stat-value{
  display:block;
  font-size:1rem;
  font-weight:700;
  color:var(--blue);
  line-height:1;
}

.stat-value.wins{
  color:#10b981;
}

.stat-value.losses{
  color:#ef4444;
}

.stat-value.percentage{
  color:var(--blue);
}

.stat-value.pending{
  color:#f59e0b;
}

.small{
  font-size:0.875rem;
  color:var(--text-gray);
  text-align:center;
  margin-top:32px;
  padding:16px;
  background:#f8fafc;
  border-radius:12px;
  border:1px solid var(--border-gray);
}

@media (max-width:1024px) and (min-width:769px){
  .player-stats{
    grid-template-columns:1fr 1fr 1fr 1fr;
    gap:6px;
  }
  
  .stat{
    padding:4px 2px;
    min-height:48px;
  }
  
  .stat-label{
    font-size:0.9rem;
  }
  
  .stat-value{
    font-size:0.95rem;
  }
}

@media (max-width:768px){
  .header-content{
    flex-direction:column;
    text-align:center;
    gap:16px;
  }
  
  .header-text h1{
    font-size:1.5rem;
  }
  
  .admin-link{
    margin-left:0;
    margin-top:8px;
  }
  
  .admin-btn{
    padding:6px 12px;
    font-size:0.8rem;
  }
  
  .tabs{
    flex-direction:column;
    gap:8px;
  }
  
  .tab{
    text-align:center;
  }
  
  .container{
    padding:0 16px;
  }
  
  .card{
    padding:20px;
  }
  
  table{
    font-size:0.85rem;
  }
  
  th,td{
    padding:12px 8px;
  }
  
  #playersGrid{
    grid-template-columns:1fr;
    gap:16px;
  }
  
  .player-card{
    padding:16px;
  }
  
  .player-photo img{
    width:60px;
    height:60px;
  }
  
  .player-rank{
    width:20px;
    height:20px;
    font-size:0.7rem;
  }
  
  .player-stats{
    grid-template-columns:1fr 1fr;
    gap:6px;
  }
  
  .stat{
    padding:4px 2px;
    min-height:45px;
  }
  
  .stat-label{
    font-size:0.9rem;
    margin-bottom:1px;
  }
  
  .stat-value{
    font-size:0.9rem;
  }
}

/* ---------- ROSTER STYLES ---------- */
.roster-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-gray);
}

.back-btn {
  background: var(--blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background: #1e40af;
}

.player-name-clickable {
  cursor: pointer;
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.player-name-clickable:hover {
  color: #3b82f6;
}

.roster-content {
  max-width: 1000px;
  margin: 0 auto;
}

.player-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.player-photo-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--blue);
}

.player-basic-info h3 {
  margin: 0 0 8px 0;
  font-size: 28px;
  color: var(--blue);
}

.player-basic-info p {
  margin: 0;
  color: var(--text-gray);
  font-size: 16px;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: var(--blue);
}

.stat-number {
  font-size: 32px;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.streaks-section {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.streaks-section h4 {
  margin: 0 0 20px 0;
  color: var(--blue);
  font-size: 20px;
}

.streaks-grid {
  display: grid;
  gap: 16px;
}

.streak-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--light-gray);
  border-radius: 8px;
}

.streak-label {
  font-weight: 500;
  color: var(--text-gray);
}

.streak-value {
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.streak-value.win {
  background: #dcfce7;
  color: #166534;
}

.streak-value.loss {
  background: #fef2f2;
  color: #dc2626;
}

.streak-value.none {
  background: #f1f5f9;
  color: var(--text-gray);
}

.match-history {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.match-history h4 {
  margin: 0 0 20px 0;
  color: var(--blue);
  font-size: 20px;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-item {
  display: grid;
  grid-template-columns: 120px 1fr auto 80px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid;
  transition: background-color 0.2s;
}

.match-item.win {
  background: #f0fdf4;
  border-left-color: #22c55e;
}

.match-item.loss {
  background: #fef2f2;
  border-left-color: #ef4444;
}

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

.match-date {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.match-opponent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opponent-photo-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.opponent-name {
  font-weight: 500;
  cursor: pointer;
  color: #1e40af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.opponent-name:hover {
  color: #3b82f6;
}

.match-result {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-icon {
  font-size: 18px;
}

.result-text {
  font-weight: 500;
}

.match-item.win .result-text {
  color: #166534;
}

.match-item.loss .result-text {
  color: #dc2626;
}

.match-score {
  font-family: monospace;
  font-weight: bold;
  color: var(--blue);
  text-align: center;
}

.opponents-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.opponents-played,
.opponents-pending {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.opponents-played h4,
.opponents-pending h4 {
  margin: 0 0 20px 0;
  color: var(--blue);
  font-size: 18px;
}

.opponents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opponent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--light-gray);
  cursor: pointer;
  transition: background-color 0.2s;
}

.opponent-item:hover {
  background: #e2e8f0;
}

.opponent-item .opponent-name {
  flex: 1;
  font-weight: 500;
}

.times-played {
  font-size: 12px;
  color: var(--text-gray);
  background: white;
  padding: 4px 8px;
  border-radius: 12px;
}

.pending-badge {
  font-size: 12px;
  color: #f59e0b;
  background: #fef3c7;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.no-data {
  text-align: center;
  color: var(--text-gray);
  font-style: italic;
  padding: 20px;
}

/* Responsive design for roster */
@media (max-width: 768px) {
  .player-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .match-item {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  
  .opponents-section {
    grid-template-columns: 1fr;
  }
  
  .roster-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Garcabot Floating Chatbot Styles */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.chatbot-icon {
  width: 40px;
  height: 40px;
}

.chatbot-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  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;
}

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

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

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

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar-small {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatbot-avatar-img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.chatbot-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chatbot-status {
  font-size: 12px;
  opacity: 0.8;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
}

.message {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: #3b82f6;
  color: white;
}

.message.bot .message-avatar {
  background: #667eea;
  color: white;
}

.message-content {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  line-height: 1.4;
  font-size: 14px;
}

.message.user .message-content {
  background: #3b82f6;
  color: white;
  border-bottom-right-radius: 4px;
}

.message.bot .message-content {
  background: white;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.message-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

.chatbot-suggestions {
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.suggestion-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.suggestion-btn {
  padding: 8px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  color: #374151;
}

.suggestion-btn:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.chatbot-input-container {
  display: flex;
  padding: 16px;
  background: white;
  border-top: 1px solid #e2e8f0;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.chatbot-send {
  padding: 10px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chatbot-send:hover {
  background: #2563eb;
}

.chatbot-send:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-style: italic;
  font-size: 12px;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dot {
  width: 4px;
  height: 4px;
  background: #6b7280;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* Responsive adjustments for chatbot */
@media (max-width: 768px) {
  .chatbot-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .chatbot-window {
    width: calc(100vw - 30px);
    height: 450px;
    right: 0;
  }
  
  .chatbot-toggle {
    width: 55px;
    height: 55px;
  }
  
  .chatbot-icon {
    width: 28px;
    height: 28px;
  }
}