/* Panel Ribbon Styles - VISUAL.md Compliant */
.panel-ribbon {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 60px;
  height: 100px;
  border: none;
  background: linear-gradient(135deg, #555DFF 0%, #00091E 100%);
  color: #FFFFFF;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-radius: 0 30px 30px 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 2px;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-ribbon:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}

.panel-ribbon:active {
  transform: translateY(-50%) scale(0.95);
}

.left-ribbon.hidden {
  opacity: 0;
  transform: translateY(-50%) translateX(-20px);
  pointer-events: none;
}

.right-ribbon.hidden {
  opacity: 0;
  transform: translateY(-50%) translateX(20px);
  pointer-events: none;
}

.left-ribbon {
  left: 0;
  border-radius: 0 30px 30px 0;
}

.right-ribbon {
  right: 0;
  border-radius: 30px 0 0 30px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.side-panel {
  position: fixed;
  top: 0;
  width: 300px;
  height: 100vh;
  background: #00091E;
  border: 1px solid rgba(85, 93, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.left-panel {
  left: -300px;
  width: 300px;
}

.right-panel {
  right: -300px;
  width: 300px;
}

.chat-panel {
  width: 500px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.chat-panel.right-panel {
  right: -500px;
  border-radius: 12px 0 0 12px !important; /* Only round left corners */
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(85, 93, 255, 0.2);
  background: linear-gradient(135deg, #00091E 0%, rgba(85, 93, 255, 0.05) 100%);
}

.panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  color: #FFFFFF;
}

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

.panel-close:hover {
  background: rgba(85, 93, 255, 0.1);
  color: #555DFF;
}

.panel-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  color: #FFFFFF;
}

.chat-panel .chat-component {
  height: 100% !important;
  overflow: hidden;
}

.panel-content p {
  margin: 0 0 15px 0;
  line-height: 1.5;
  color: #FFFFFF;
  font-family: 'Archivo', sans-serif;
}

.apps-placeholder,
.chat-placeholder {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Archivo', sans-serif;
}

.apps-placeholder i,
.chat-placeholder i {
  display: block;
  margin-bottom: 15px;
  opacity: 0.4;
  color: #555DFF;
}

.apps-placeholder p,
.chat-placeholder p {
  margin: 0;
  font-style: italic;
  font-size: 14px;
}

/* Unauthenticated Chat Content Styles - DARK THEME */
.panel-content-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.unauthenticated-chat-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, #00091E 0%, rgba(85, 93, 255, 0.05) 100%);
  border-radius: 12px 0 0 12px;
  color: #FFFFFF;
}

.connect-wallet-prompt {
  max-width: 320px;
}

.connect-icon {
  font-size: 48px;
  color: #555DFF;
  margin-bottom: 20px;
  opacity: 0.9;
}

.connect-icon i {
  display: block;
  filter: drop-shadow(0 0 8px rgba(85, 93, 255, 0.3));
}

.connect-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.2;
  font-family: 'Archivo', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.connect-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  line-height: 1.5;
  font-family: 'Archivo', sans-serif;
}

.connect-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Archivo', sans-serif;
  transition: all 0.2s ease;
}

.benefit-item:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.benefit-item i {
  color: #555DFF;
  font-size: 16px;
  width: 16px;
  opacity: 0.9;
  flex-shrink: 0;
}

.connect-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  padding: 15px;
  background: rgba(85, 93, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(85, 93, 255, 0.2);
  font-family: 'Archivo', sans-serif;
  backdrop-filter: blur(10px);
}

/* Apps List Styles */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, rgba(85, 93, 255, 0.1) 0%, rgba(85, 93, 255, 0.05) 100%);
  border: 1px solid rgba(85, 93, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Archivo', sans-serif;
  text-align: left;
}

.app-button:hover {
  background: linear-gradient(135deg, rgba(85, 93, 255, 0.2) 0%, rgba(85, 93, 255, 0.1) 100%);
  border-color: rgba(85, 93, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(85, 93, 255, 0.3);
}

.app-button:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

.app-icon {
  font-size: 20px;
  color: #555DFF;
  margin-right: 14px;
  width: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0; /* Allow text truncation */
}

.app-name {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}

.app-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .unauthenticated-chat-content {
    padding: 30px 20px;
  }

  .connect-wallet-prompt {
    max-width: 280px;
  }

  .connect-title {
    font-size: 20px;
  }

  .connect-subtitle {
    font-size: 14px;
  }

  .connect-benefits {
    gap: 12px;
  }

  .benefit-item {
    font-size: 13px;
  }

  .app-button {
    padding: 14px;
  }

  .app-name {
    font-size: 15px;
  }

  .app-description {
    font-size: 11px;
  }

  .app-icon {
    font-size: 18px;
    margin-right: 12px;
  }
}