/**
 * CyberFiles Bot - Floating Widget Styles
 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap');

.cyberfiles-bot {
  position: fixed;
  bottom: 20px;
  right: 18px;
  z-index: 9999;
  font-family: 'Rajdhani', sans-serif;
}

.cyberfiles-bot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 0;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  background: linear-gradient(135deg, #0a0a0f, #15152a);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(255, 0, 255, 0.1);
  transition: all 0.3s ease;
  animation: botFloat 3s ease-in-out infinite;
}

.cyberfiles-bot-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  z-index: -1;
  padding: 2px;
}

.cyberfiles-bot-toggle:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.6), 0 0 50px rgba(0, 255, 255, 0.3), inset 0 0 30px rgba(255, 0, 255, 0.15);
}

@keyframes botFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.bot-icon {
  font-size: 1.6rem;
  z-index: 1;
  filter: drop-shadow(0 0 10px #ff00ff);
}

.bot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  border: 2px solid #00ffff;
  animation: botPulse 2s ease-out infinite;
}

@keyframes botPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.cyberfiles-bot-popup {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 340px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(10, 10, 15, 0.98);
  border: 2px solid #00ffff;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.2), inset 0 0 60px rgba(0, 255, 255, 0.05);
}

.cyberfiles-bot-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 25px 25px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(25px, 25px); }
}

.cyberfiles-bot-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.bot-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.bot-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.bot-logo {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 5px #ff00ff);
}

.bot-close {
  background: none;
  border: none;
  color: #606080;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.bot-close:hover {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
}

.bot-popup-content {
  padding: 20px;
  position: relative;
  z-index: 1;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bot-auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.bot-auth-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bot-auth-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.bot-auth-subtitle {
  font-family: 'Share Tech Mono', monospace;
  color: #606080;
  font-size: 0.85rem;
  margin: 0;
}

.bot-terminal-text {
  font-family: 'Share Tech Mono', monospace;
  color: #00ff00;
  font-size: 0.8rem;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: rgba(0, 255, 0, 0.05);
  border-left: 2px solid #00ff00;
}

.bot-terminal-text::before {
  content: '> ';
}

.bot-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.bot-login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bot-cyber-input-group {
  position: relative;
  margin-bottom: 20px;
}

.bot-cyber-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00ffff;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bot-cyber-input:focus {
  border-color: #ff00ff;
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.bot-cyber-input::placeholder {
  color: #606080;
}

.bot-cyber-label {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 0 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00ffff;
  background: #0a0a0f;
}

.bot-cyber-btn {
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: #fff;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.bot-cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  z-index: -2;
}

.bot-cyber-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #0a0a0f;
  z-index: -1;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.bot-cyber-btn:hover::after {
  background: transparent;
}

.bot-cyber-btn:hover {
  box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
  transform: translateY(-2px);
}

.bot-cyber-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.bot-cyber-divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
  color: #606080;
}

.bot-cyber-divider::before,
.bot-cyber-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffff, transparent);
}

.bot-cyber-divider span {
  padding: 0 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
}

.bot-auth-footer {
  text-align: center;
  color: #606080;
  font-size: 0.85rem;
}

.bot-auth-footer a {
  color: #00ffff;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.bot-auth-footer a:hover {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
}

.bot-reset-link {
  margin-top: 12px;
}

.bot-reset-link a {
  color: #ff00ff !important;
}

.bot-error {
  font-family: 'Share Tech Mono', monospace;
  background: rgba(255, 0, 64, 0.1);
  border: 1px solid rgba(255, 0, 64, 0.5);
  border-left: 3px solid #ff0040;
  padding: 10px 12px;
  margin-bottom: 15px;
  color: #ff6b6b;
  font-size: 0.8rem;
  text-align: left;
}

.bot-error::before {
  content: '⚠ ERROR: ';
  color: #ff0040;
}

.bot-success {
  text-align: center;
  padding: 25px 20px;
}

.bot-success-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00;
}

.bot-success h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.bot-success p {
  font-family: 'Share Tech Mono', monospace;
  color: #606080;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.bot-dashboard-link {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #fff;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s ease;
}

.bot-dashboard-link:hover {
  box-shadow: 0 0 15px #ff00ff, 0 0 30px #00ffff;
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .cyberfiles-bot {
    bottom: 20px;
    right: 15px;
  }
  
  .cyberfiles-bot-popup {
    width: calc(100vw - 30px);
    right: 0;
  }
  
  .bot-auth-title {
    font-size: 1.1rem;
  }
}
