/* Apollo Chat App Styles - Mobile Optimized */
:root {
  /* Core colors */
  --cisco-blue: #049fd9;
  --cisco-dark-blue: #0d274d;
  --cisco-accent: #00bceb;
  --cisco-purple: #8B5EA9;
  --cisco-green: #6EBE4A;
  --cisco-yellow: #F2A900;
  --apollo-green: #6cce95;
  --apollo-orange: #f78b31;
  --apollo-red: #e2231a;
  
  /* Gradient palettes */
  --gradient-primary: linear-gradient(135deg, #0d274d 0%, #2b5797 50%, #049fd9 100%);
  --gradient-success: linear-gradient(135deg, #093 0%, #6cce95 100%);
  --gradient-warning: linear-gradient(135deg, #f78b31 0%, #ffcc33 100%);
  --gradient-danger: linear-gradient(135deg, #e2231a 0%, #ff6b6b 100%);
  
  /* UI Colors */
  --background-color: #f7f9fc;
  --text-color: #2d3748;
  --card-background: rgba(255, 255, 255, 0.95);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --glass-background: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  
  /* Hover effects */
  --hover-transform: translateY(-5px);
  --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  
  /* Animation speeds */
  --transition-speed: 0.3s ease;
  --transition-speed: 0.3s;
}

/* Global Styles */
html, body {
  font-family: 'Outfit', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow: hidden;
}

body {
  background-image: url('../../assets/img/backgrounds/office-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 39, 77, 0.8) 0%, rgba(4, 159, 217, 0.6) 100%);
  z-index: -1;
}

/* Common logo styles */
.logo-container {
  text-align: center;
}

.apollo-logo {
  height: auto;
  margin-bottom: 0.5rem;
}

/* Chat Styles */
#mainChat {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#chatContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--glass-background);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-width: 100%;
  position: relative;
}

#chatHeader {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  width: 100%;
}

.header-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

#chatHeader h1 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

#messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  backdrop-filter: blur(5px);
}

.message {
  background: white;
  color: var(--text-color);
  padding: 0.8rem 1rem;
  border-radius: 15px 15px 15px 3px;
  max-width: 80%;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  line-height: 1.4;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.message.outgoing {
  background: var(--cisco-blue);
  color: white;
  align-self: flex-end;
  border-radius: 15px 15px 3px 15px;
}

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

#inputArea {
  display: flex;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  border-top: var(--glass-border);
  position: relative;
  z-index: 5;
}

#input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  background: white;
  margin-right: 0.5rem;
}

#input:focus {
  outline: none;
  border-color: var(--cisco-accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 235, 0.2);
}

#send {
  background: var(--cisco-blue);
  color: white;
  border: none;
  width: 80px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(4, 159, 217, 0.2);
  position: relative;
}

#send::before {
  content: 'Send';
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#send:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(4, 159, 217, 0.3);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.6rem 1rem;
  border-radius: 15px;
  max-width: 50px;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 1px;
  background-color: #9E9EA1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
  animation: bouncing 1s infinite 0.2s;
}
.typing-indicator span:nth-of-type(2) {
  animation: bouncing 1s infinite 0.4s;
}
.typing-indicator span:nth-of-type(3) {
  animation: bouncing 1s infinite 0.6s;
}

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

/* Quick Reply Buttons */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.quick-reply-btn {
  background: var(--glass-background);
  border: var(--glass-border);
  backdrop-filter: blur(5px);
  color: var(--cisco-dark-blue);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.quick-reply-btn:hover {
  background: var(--cisco-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(4, 159, 217, 0.2);
}

/* New Chat Button */
.new-chat-btn {
  background: var(--gradient-success);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  margin: 1rem auto;
  display: block;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 12px rgba(108, 206, 149, 0.3);
}

.new-chat-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 206, 149, 0.4);
}

/* Media Queries for Responsive Design */
/* Common footer elements - specific styling in login.css and dashboard.css */
.footer-text {
  font-weight: 500;
  opacity: 0.8;
}

.cil-logo {
  height: 45px;
  width: auto;
}

/* Media Queries for Responsive Design */
@media (max-width: 600px) {
  #loginBox {
    padding: 1.5rem;
    width: 90%;
  }
  
  #chatHeader {
    padding: 0.8rem 0.5rem;
  }
  
  .message {
    max-width: 85%;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }
  
  #messages {
    padding: 0.8rem;
  }
  
  #inputArea {
    padding: 0.6rem;
  }
  
  #input {
    padding: 0.7rem;
  }
  
  #send {
    width: 100px;
    height: 45px;
  }
  
  .header-logo {
    height: 60px;
  }
  
  .header-logo-container {
    margin-bottom: 6px;
  }
  
  #chatHeader h1 {
    font-size: 0.9rem;
  }
  
  .apollo-logo {
    width: 130px;
  }
  
  /* Footer styles moved to dashboard.css and login.css */
  
  .quick-replies {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quick-reply-btn {
    width: 100%;
    text-align: center;
  }
  
  /* Fix for iOS safe areas */
  @supports (padding: max(0px)) {
    #inputArea {
      padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
      background: rgba(255, 255, 255, 0.8);
    }
  }
}

/* Common header styles that might be shared across pages */
.header-logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  width: 100%;
}

.header-logo {
  height: 60px;
  width: auto;
  animation: zoomIn 0.8s ease-out;
}

/* Removed special styling for chat and logout buttons to keep all buttons consistent */
