/* KI District Styles - Cyan background with rgba(255, 102, 0, 0.9) accent colors */

/* District Home Styles */
.district-kugel { 
  display: grid; 
  gap: 12px; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
  margin-top: 20px;
}

.ring-card { 
  border: 2px solid rgba(255, 102, 0, 0.9); 
  border-radius: 12px;
  padding: 16px; 
  background: cyan;
  color: #000;
  transition: all 0.3s ease;
}

.ring-card:hover {
  border-color: rgba(255, 102, 0, 0.9);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.ring-locked { 
  opacity: 0.65; 
  border-color: rgba(255, 255, 255, 0.1);
}

.ring-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 8px;
}

.tag { 
  font-size: 12px; 
  padding: 4px 8px; 
  border-radius: 1000px;
  border: 1px solid rgba(255, 255, 255, 0.15); 
}

.tag-ok { 
  background: rgba(255, 102, 0, 0.9); 
  border-color: rgba(255, 102, 0, 0.9); 
  color: #fff;
}

.tag-lock { 
  background: rgba(255, 0, 0, 0.2); 
  border-color: rgba(255, 0, 0, 0.5); 
  color: #ff9090;
}

/* Ring depth styling */
.ring-depth-1 { border-left: 4px solid rgba(255, 102, 0, 0.6); }
.ring-depth-2 { border-left: 4px solid rgba(255, 102, 0, 0.7); }
.ring-depth-3 { border-left: 4px solid rgba(255, 102, 0, 0.8); }
.ring-depth-4 { border-left: 4px solid rgba(255, 102, 0, 0.9); }
.ring-depth-5 { border-left: 4px solid rgba(255, 102, 0, 1); }

/* Ring Page Styles */
.ring-info {
  background: cyan;
  border: 1px solid rgba(255, 102, 0, 0.9);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.ring-depth, .ring-key {
  color: #000;
  margin: 8px 0;
}

/* Theater Styles */
.theater-controls{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  align-items: center;
  margin: 12px 0 16px 0;
}

.theater-controls label {
  color: #000;
  font-weight: bold;
}

.theater-controls select,
.theater-controls input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 102, 0, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: #000;
}

.theater-controls button { 
  grid-column: 2 / 3; 
  justify-self: start; 
  padding: 10px 20px;
  background: rgba(255, 102, 0, 0.9);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.theater-controls button:hover {
  background: rgba(255, 102, 0, 1);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.7);
}

.theater-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.theater-left, .theater-right{
  border: 2px solid rgba(255, 102, 0, 0.9);
  border-radius: 12px;
  padding: 16px;
  background: cyan;
}

.theater-left h4, .theater-right h4 {
  color: rgba(255, 102, 0, 0.9);
  margin-top: 0;
  margin-bottom: 12px;
}

.show-notes{
  white-space: pre-wrap;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: #000;
  line-height: 1.4;
}

.queue{ 
  display: grid; 
  gap: 10px; 
}

.queue-item{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 102, 0, 0.2);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.queue-item:hover {
  border-color: rgba(255, 102, 0, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.btn-outline-primary {
  background: transparent;
  color: rgba(255, 102, 0, 0.9);
  border: 2px solid rgba(255, 102, 0, 0.9);
}

.btn-outline-primary:hover {
  background: rgba(255, 102, 0, 0.9);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #999;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
}

.btn-primary:hover {
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.mt-3 {
  margin-top: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .theater-grid {
    grid-template-columns: 1fr;
  }
  
  .theater-controls {
    grid-template-columns: 1fr;
  }
  
  .theater-controls button {
    grid-column: 1;
  }
}


/* KAI - Knowledgeable AI Guide Styles */
.kai-container {
  margin-top: 24px;
  border: 2px solid rgba(255, 102, 0, 0.9);
  border-radius: 12px;
  background: cyan;
  overflow: hidden;
}

.kai-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 102, 0, 0.1);
  border-bottom: 1px solid rgba(255, 102, 0, 0.3);
}

.kai-avatar {
  font-size: 48px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 102, 0, 0.2);
  border-radius: 50%;
  border: 2px solid rgba(255, 102, 0, 0.9);
}

.kai-info h3 {
  margin: 0 0 4px 0;
  color: rgba(255, 102, 0, 0.9);
  font-size: 18px;
}

.kai-info p {
  margin: 0;
  color: #000;
  font-size: 14px;
  opacity: 0.8;
}

.kai-chat {
  padding: 16px;
}

.kai-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
  min-height: 120px;
}

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

.kai-avatar-small {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 102, 0, 0.2);
  border-radius: 50%;
  border: 1px solid rgba(255, 102, 0, 0.9);
  flex-shrink: 0;
}

.kai-bubble {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
  max-width: 80%;
}

.kai-welcome .kai-bubble {
  background: rgba(255, 102, 0, 0.1);
  border-color: rgba(255, 102, 0, 0.5);
}

.kai-user-message {
  justify-content: flex-end;
}

.kai-user-message .kai-bubble {
  background: rgba(0, 150, 255, 0.2);
  border: 1px solid rgba(0, 150, 255, 0.5);
  color: #000;
  font-weight: 500;
}

.kai-ai-message {
  justify-content: flex-start;
}

.kai-ai-message .kai-bubble {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 102, 0, 0.3);
  color: #000;
}

.kai-suggestions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.kai-suggestion {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 102, 0, 0.5);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000;
}

.kai-suggestion:hover {
  background: rgba(255, 102, 0, 0.2);
  border-color: rgba(255, 102, 0, 0.9);
  transform: translateY(-1px);
}

.kai-input-row {
  display: flex;
  gap: 8px;
}

.kai-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 102, 0, 0.5);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 14px;
  outline: none;
}

.kai-input-row input:focus {
  border-color: rgba(255, 102, 0, 0.9);
  background: rgba(255, 255, 255, 1);
}

.kai-input-row button {
  padding: 10px 16px;
  background: rgba(255, 102, 0, 0.9);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.kai-input-row button:hover {
  background: rgba(255, 102, 0, 1);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

/* User message styling */
.kai-user-message {
  justify-content: flex-end;
}

.kai-user-message .kai-bubble {
  background: rgba(255, 102, 0, 0.8);
  color: #fff;
  border-color: rgba(255, 102, 0, 0.9);
}

.kai-user-message .kai-avatar-small {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .kai-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .kai-suggestions {
    justify-content: center;
  }
  
  .kai-bubble {
    max-width: 90%;
  }
}

/* KAI Fixed Assistant Styles */
.kai-fixed-assistant {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(255, 102, 0, 0.9);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kai-fixed-assistant a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  position: relative;
  width: 100%;
  height: 100%;
}

.kai-fixed-assistant img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid white;
  margin-bottom: 4px;
}

.kai-assistant-label {
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 2px;
  text-align: center;
  line-height: 1;
}

.kai-hide-btn {
  position: relative;
  top: 13px;
  right: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(255, 102, 0, 0.9);
  border: none;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: all 0.3s ease;
}

.kai-hide-btn:hover {
  background: white;
  color: rgba(255, 102, 0, 1);
  transform: scale(1.1);
}

.kai-fixed-assistant.kai-hidden {
  width: 16px;
  height: 16px;
  padding: 2px;
  background: rgba(255, 102, 0, 0.9);
  border-radius: 50%;
  overflow: hidden;
}

.kai-fixed-assistant.kai-hidden a {
  width: 100%;
  height: 100%;
  justify-content: center;
}

.kai-fixed-assistant.kai-hidden img {
  width: 12px;
  height: 12px;
  margin-bottom: 0;
  border: none;
}

.kai-fixed-assistant.kai-hidden .kai-assistant-label,
.kai-fixed-assistant.kai-hidden .kai-hide-btn {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .kai-fixed-assistant {
    bottom: 15px;
    right: 15px;
    width: 70px;
    height: 70px;
    padding: 4px;
  }
  
  .kai-fixed-assistant img {
    width: 30px;
    height: 30px;
  }
  
  .kai-assistant-label {
    font-size: 9px;
  }
  
  .kai-fixed-assistant.kai-hidden {
    width: 14px;
    height: 14px;
  }
  
  .kai-fixed-assistant.kai-hidden img {
    width: 10px;
    height: 10px;
  }
}

