/* SIJAGO AI - Improved CSS with Better Color Harmony */

/* Color Variables for Consistency */
:root {
  /* TikTok-inspired Primary Colors */
  --primary-pink: #ff0050;
  --primary-cyan: #25f4ee;
  --primary-black: #000000;
  
  /* Softer Secondary Colors */
  --soft-pink: #ff4081;
  --soft-cyan: #40e0d0;
  --soft-purple: #8b5cf6;
  
  /* Background Colors */
  --bg-glass-light: rgba(255, 255, 255, 0.08);
  --bg-glass-medium: rgba(255, 255, 255, 0.12);
  --bg-glass-dark: rgba(0, 0, 0, 0.4);
  --bg-glass-darker: rgba(0, 0, 0, 0.6);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-placeholder: rgba(255, 255, 255, 0.45);
  
  /* Border Colors */
  --border-light: rgba(255, 255, 255, 0.15);
  --border-medium: rgba(255, 255, 255, 0.25);
  --border-accent: rgba(255, 0, 80, 0.3);
  
  /* Shadow Colors */
  --shadow-soft: rgba(0, 0, 0, 0.2);
  --shadow-medium: rgba(0, 0, 0, 0.3);
}

/* Global styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Animation */
.fade-in {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Card styles */
.card {
  background: var(--bg-glass-medium) !important;
  border: 1px solid var(--border-light) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.card-body {
  background: transparent !important;
}

.card-header {
  background: var(--bg-glass-dark) !important;
  border-bottom: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-header.bg-primary {
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-purple)) !important;
  color: white !important;
}

.card-header.bg-success {
  background: linear-gradient(45deg, #4caf50, #66bb6a) !important;
  color: white !important;
}

.card-header.bg-info {
  background: linear-gradient(45deg, var(--soft-cyan), #40e0d0) !important;
  color: #000 !important;
}

.card-header.bg-warning {
  background: linear-gradient(45deg, #ffc107, #ffb300) !important;
  color: #000 !important;
}

.card-header h6 {
  margin: 0 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
} 

/* Enhanced Alert Styling */
.alert {
  background: var(--bg-glass-medium) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(15px) !important;
  padding: 20px !important;
}

.alert-info {
  background: rgba(64, 224, 208, 0.15) !important;
  border-color: rgba(64, 224, 208, 0.3) !important;
  color: var(--soft-cyan) !important;
}

.alert-success {
  background: rgba(76, 175, 80, 0.15) !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
  color: #4caf50 !important;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.15) !important;
  border-color: rgba(255, 193, 7, 0.3) !important;
  color: #ffc107 !important;
}

.alert-danger {
  background: rgba(244, 67, 54, 0.15) !important;
  border-color: rgba(244, 67, 54, 0.3) !important;
  color: #f44336 !important;
}

.alert h5, .alert h6 {
  color: inherit !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
}

.alert p {
  color: inherit !important;
  opacity: 0.9 !important;
  margin-bottom: 0 !important;
}

.alert ul li {
  color: inherit !important;
  opacity: 0.9 !important;
}

.alert i {
  color: inherit !important;
}

/* Button styles */
.btn {
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-success {
  background: linear-gradient(45deg, #4caf50, #66bb6a) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2) !important;
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(45deg, #388e3c, #4caf50) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3) !important;
  color: white !important;
}

.btn-primary {
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-purple)) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.2) !important;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(45deg, var(--primary-pink), var(--soft-purple)) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 64, 129, 0.3) !important;
  color: white !important;
}

.btn-primary:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.btn-primary:hover {
  background-color: #3a56d4;
  border-color: #3a56d4;
}

.btn-outline-secondary {
  background: transparent !important;
  border: 2px solid var(--border-medium) !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
}

.btn-outline-secondary:hover {
  background: var(--bg-glass-medium) !important;
  border-color: var(--border-medium) !important;
  color: var(--text-primary) !important;
  transform: translateY(-1px) !important;
}

.modal-content {
  background: var(--bg-glass-darker) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 15px !important;
  backdrop-filter: blur(20px) !important;
  color: var(--text-primary) !important;
}

.modal-header {
  background: var(--bg-glass-dark) !important;
  border-bottom: 1px solid var(--border-light) !important;
  border-radius: 15px 15px 0 0 !important;
}

.modal-title {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.modal-body {
  background: transparent !important;
  color: var(--text-secondary) !important;
}

.modal-body h6 {
  color: var(--soft-pink) !important;
  font-weight: 600 !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}

.modal-body p, .modal-body ul, .modal-body li {
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
}

.modal-footer {
  background: transparent !important;
  border-top: 1px solid var(--border-light) !important;
}

.btn-outline-primary {
  color: #4361ee;
  border-color: #4361ee;
}

.btn-outline-primary:hover {
  background-color: #4361ee;
  border-color: #4361ee;
}

/* Navbar styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.form-check {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 15px !important;
  background: var(--bg-glass-light) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 12px !important;
  margin-bottom: 20px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
}

.form-check:hover {
  background: var(--bg-glass-medium) !important;
  border-color: var(--border-medium) !important;
}

.form-check-input {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid var(--border-medium) !important;
  background: transparent !important;
  border-radius: 4px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.form-check-input:checked {
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-purple)) !important;
  border-color: var(--soft-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.2) !important;
}

.form-check-input:focus {
  border-color: var(--soft-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.15) !important;
  outline: none !important;
}

.form-check-label {
  color: var(--text-secondary) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  flex: 1 !important;
  margin-bottom: 0 !important;
}

.form-check-label a {
  color: var(--soft-cyan) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.form-check-label a:hover {
  color: var(--soft-pink) !important;
  text-decoration: underline !important;
}



/* Form styles */
.form-control, .input-group-text {
  border-radius: 5px;
}

.form-control:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.input-group-text {
  background-color: #f8f9fa;
  color: #6c757d;
}

/* Hero section */
.hero-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

/* Footer styles */
footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 2rem 0;
}

footer a {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #4361ee;
}

/* Admin dashboard */
.table th {
  font-weight: 600;
}

.table th,
table th {
  background: var(--bg-glass-dark) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-light) !important;
  font-weight: 600;
  padding: 12px 15px;
}

.table td,
table td {
  background: var(--bg-glass-light) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-light) !important;
  padding: 12px 15px;
  vertical-align: middle;
}

.table tbody tr:nth-child(even) td,
table tbody tr:nth-child(even) td {
  background: var(--bg-glass-medium) !important;
}

.table tbody tr:hover td,
table tbody tr:hover td {
  background: rgba(255, 64, 129, 0.1) !important;
}

.badge {
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  border-radius: 15px !important;
}

.badge.bg-success,
.badge.bg-info {
  background: linear-gradient(45deg, #4caf50, #66bb6a) !important;
  color: white !important;
  border: none !important;
}

.badge.bg-warning {
  background: linear-gradient(45deg, #ffc107, #ffb300) !important;
  color: #000 !important;
  border: none !important;
}

.badge.bg-danger {
  background: linear-gradient(45deg, #f44336, #e53935) !important;
  color: white !important;
  border: none !important;
}

.table, 
table {
  background: transparent !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 10px;
  overflow: hidden;
}

/* ========== GOAKTIFITAS IMPROVED STYLES ========== */

/* Enhanced TikTok-inspired Chat Interface with Better Color Harmony */
.goaktifitas-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* Softer, more harmonious gradient */
  background: linear-gradient(135deg, 
    #1a0a2e 0%, 
    #16213e 25%, 
    #0f3460 50%, 
    #533a7d 75%, 
    #ff0050 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: var(--text-primary);
  overflow: hidden;
  position: relative;
}

/* Softer gradient animation */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Mobile Header - Enhanced with better contrast */
.mobile-header {
  display: none;
  background: var(--bg-glass-darker);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-light);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.mobile-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.mobile-sidebar-toggle {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-sidebar-toggle:hover {
  background: var(--bg-glass-medium);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.mobile-title h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(45deg, var(--primary-pink), var(--soft-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mobile-usage {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mobile-subscription-alert {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Desktop Header - Enhanced styling */
.desktop-header {
  background: var(--bg-glass-darker);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 30px;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.header-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--primary-pink), var(--soft-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.api-usage-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.usage-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.usage-count {
  font-weight: 700;
  color: var(--soft-cyan);
}

.usage-bar {
  width: 120px;
  height: 4px;
  background: var(--bg-glass-light);
  border-radius: 2px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--soft-cyan), var(--soft-pink));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.subscription-alert {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffc107;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Chat Layout */
.chat-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 299;
  backdrop-filter: blur(8px);
}

.mobile-sidebar-overlay.active {
  display: block;
}

/* Enhanced Sidebar */
.chat-sidebar {
  width: 320px;
  background: var(--bg-glass-darker);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 300;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.sidebar-header h3 {
  margin: 0 0 15px 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.new-chat-btn {
  width: 100%;
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-purple));
  border: none;
  padding: 12px 16px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.2);
}

.new-chat-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 64, 129, 0.3);
  background: linear-gradient(45deg, var(--primary-pink), var(--soft-purple));
}

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

.mobile-sidebar-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--bg-glass-light);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-sidebar-close:hover {
  background: var(--bg-glass-medium);
  color: var(--text-primary);
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.loading-conversations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg-glass-light);
  border-top: 2px solid var(--soft-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Enhanced Conversation Item Styling */
.conversation-item {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.conversation-item:hover {
  background: var(--bg-glass-medium);
  border-color: var(--border-accent);
  transform: translateX(5px);
  box-shadow: 0 4px 15px var(--shadow-soft);
}

.conversation-item:hover .conversation-actions {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.conversation-item.active {
  background: rgba(255, 64, 129, 0.15);
  border-color: var(--soft-pink);
}

.conversation-item.pinned {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.25);
}

.conversation-item.pinned::before {
  content: '📌';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 12px;
  z-index: 2;
}

.conversation-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-size: 0.9rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 35px;
}

.conversation-time {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* Enhanced Conversation Actions */
.conversation-actions {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%) translateX(10px);
  display: flex;
  gap: 5px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
}

.conversation-actions button {
  background: var(--bg-glass-dark);
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.pin-btn:hover {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  transform: scale(1.1);
}

.delete-btn:hover {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  transform: scale(1.1);
}

.pin-btn[data-pinned="true"] {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

/* Conversation metadata */
.conversation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.conversation-stats {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-placeholder);
}

.conversation-stats .stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.conversation-stats .stat i {
  font-size: 0.7rem;
}

/* Enhanced category colors */
.conversation-title.hotel { border-left: 3px solid #4caf50; padding-left: 8px; }
.conversation-title.kuliner { border-left: 3px solid #ff9800; padding-left: 8px; }
.conversation-title.wisata { border-left: 3px solid #2196f3; padding-left: 8px; }
.conversation-title.aktivitas { border-left: 3px solid #9c27b0; padding-left: 8px; }
.conversation-title.script { border-left: 3px solid #e91e63; padding-left: 8px; }

/* No Conversations State */
.no-conversations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  text-align: center;
}

.no-conversations i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: rgba(255, 64, 129, 0.4);
}

.no-conversations p {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.no-conversations small {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Enhanced Main Chat Area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-glass-dark);
  backdrop-filter: blur(15px);
  min-width: 0;
}

/* Subscription Overlay */
.subscription-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass-darker);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.overlay-content {
  text-align: center;
  max-width: 400px;
  padding: 40px 20px;
}

.lock-icon {
  font-size: 4rem;
  color: #ffc107;
  margin-bottom: 20px;
}

.overlay-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overlay-content p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.upgrade-btn {
  background: linear-gradient(45deg, #ffc107, #ff9800);
  color: #000;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
  color: #000;
}

/* Enhanced Welcome Screen */
.welcome-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.welcome-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.welcome-content > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: var(--bg-glass-medium);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow-soft);
}

.feature-card i {
  font-size: 2rem;
  color: var(--soft-pink);
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.example-prompts h4 {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.prompt-btn {
  background: rgba(64, 224, 208, 0.15);
  border: 1px solid rgba(64, 224, 208, 0.3);
  color: var(--soft-cyan);
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.prompt-btn:hover {
  background: rgba(64, 224, 208, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.1);
}

/* Enhanced Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  max-width: 85%;
  animation: messageSlideIn 0.3s ease-out;
}

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

.message.user {
  align-self: flex-end;
}

.message.assistant {
  align-self: flex-start;
}

.message-content {
  position: relative;
  padding: 15px 20px;
  border-radius: 20px;
  word-wrap: break-word;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.message.user .message-content {
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-purple));
  color: white;
  border-bottom-right-radius: 8px;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.2);
}

.message.assistant .message-content {
  background: var(--bg-glass-medium);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-bottom-left-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-soft);
}

/* Enhanced Message Content Styling */
.message-content pre {
  background: var(--bg-glass-dark);
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 10px 0;
  border-left: 3px solid var(--soft-pink);
}

.message-content code {
  background: var(--bg-glass-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--soft-cyan);
}

.message-content blockquote {
  border-left: 3px solid var(--soft-cyan);
  padding-left: 15px;
  margin: 10px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.message-content ul, .message-content ol {
  padding-left: 20px;
  margin: 10px 0;
}

.message-content li {
  margin-bottom: 5px;
}

.message-content strong {
  color: var(--soft-pink);
  font-weight: 700;
}

.message-content em {
  color: var(--soft-cyan);
  font-style: italic;
}

.message-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.copy-btn {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.copy-btn:hover {
  background: var(--bg-glass-medium);
  color: var(--text-primary);
}

.copy-btn.copied {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  color: #4caf50;
}

.message-time {
  font-size: 0.75rem;
  color: var(--text-placeholder);
  margin-top: 6px;
}

.typing-message {
  align-self: flex-start;
  max-width: 80%;
}

.typing-content {
  background: var(--bg-glass-medium);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  border-bottom-left-radius: 8px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

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

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--soft-pink);
  animation: typingBounce 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Enhanced Chat Input */
.chat-input-container {
  background: var(--bg-glass-darker);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  padding: 15px 20px 20px;
}

.input-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* Mobile Quick Actions */
.mobile-quick-actions {
  display: none;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-action-btn {
  background: rgba(64, 224, 208, 0.15);
  border: 1px solid rgba(64, 224, 208, 0.3);
  color: var(--soft-cyan);
  padding: 8px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
  background: rgba(64, 224, 208, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(64, 224, 208, 0.1);
}

.input-field-container {
  display: flex;
  align-items: flex-end;
}

/* Enhanced Input Area with Better Contrast */
.input-area {
  background: var(--bg-glass-medium);
  border: 1px solid var(--border-medium);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  transition: all 0.3s ease;
  width: 100%;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px var(--shadow-soft);
}

.input-area:focus-within {
  border-color: var(--soft-pink);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

.input-area.focused {
  border-color: var(--soft-pink);
  box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

/* Enhanced Input Field */
#messageInput {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  resize: none;
  outline: none;
  min-height: 24px;
  max-height: 120px;
  line-height: 1.5;
  font-family: inherit;
  width: 100%;
  margin-bottom: 10px;
}

#messageInput::placeholder {
  color: var(--text-placeholder);
}

#messageInput:focus {
  outline: none;
}

.input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.attachment-btn {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.attachment-btn:hover {
  background: var(--bg-glass-medium);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.send-btn {
  background: linear-gradient(45deg, var(--soft-pink), var(--soft-purple));
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.2);
}

.send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 64, 129, 0.3);
  background: linear-gradient(45deg, var(--primary-pink), var(--soft-purple));
}

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

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 15px;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--soft-pink);
  animation: typingBounce 1.4s ease-in-out infinite both;
}

.character-count {
  color: var(--text-placeholder);
  font-size: 0.8rem;
}

.character-count.warning {
  color: #ffc107;
}

.character-count.error {
  color: #f44336;
}

/* Enhanced Toast Messages */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-glass-darker);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.3s ease-out;
  min-width: 250px;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.toast.success {
  border-color: #4caf50;
  background: rgba(76, 175, 80, 0.15);
}

.toast.error {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.15);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Loading States */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass-darker);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.loading-spinner-large {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-glass-light);
  border-top: 3px solid var(--soft-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-message {
  opacity: 0.7;
  pointer-events: none;
}

.streaming-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  color: var(--soft-pink);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Error States */
.error-message {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  color: #f44336;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.error-message i {
  font-size: 1.2rem;
}

.retry-btn {
  background: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: auto;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

/* Enhanced Connection Status Indicator */
.connection-status {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--bg-glass-darker);
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 200;
  transition: all 0.3s ease;
  transform: translateY(-100px);
  backdrop-filter: blur(15px);
}

.connection-status.visible {
  transform: translateY(0);
}

.connection-status.online {
  border-color: #4caf50;
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
}

.connection-status.offline {
  border-color: #f44336;
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.connection-status.online .connection-dot {
  background: #4caf50;
}

.connection-status.offline .connection-dot {
  background: #f44336;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Success States */
.success-highlight {
  background: rgba(76, 175, 80, 0.15);
  border-color: #4caf50;
  animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Enhanced Scrollbar Styling */
.conversation-list::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.conversation-list::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
  background: var(--bg-glass-light);
  border-radius: 3px;
}

.conversation-list::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 64, 129, 0.4);
  border-radius: 3px;
}

.conversation-list::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 64, 129, 0.6);
}

/* Enhanced Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

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

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}

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

/* Enhanced Performance Classes */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Enhanced Selection Colors */
::selection {
  background: rgba(255, 64, 129, 0.25);
  color: white;
}

::-moz-selection {
  background: rgba(255, 64, 129, 0.25);
  color: white;
}

/* Enhanced Focus States for Accessibility */
.conversation-item:focus,
.prompt-btn:focus,
.copy-btn:focus,
.pin-btn:focus,
.delete-btn:focus {
  outline: 2px solid var(--soft-cyan);
  outline-offset: 2px;
}

.new-chat-btn:focus,
.send-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

#messageInput:focus {
  outline: none; /* Handled by parent input-area */
}

/* ========== ENHANCED RESPONSIVE DESIGN ========== */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .desktop-header {
    padding: 15px 20px;
  }
  
  .header-title {
    font-size: 1.5rem;
  }
  
  .chat-sidebar {
    width: 280px;
  }
  
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  /* Hide desktop header, show mobile header */
  .desktop-header {
    display: none;
  }
  
  .mobile-header {
    display: block;
  }
  
  .mobile-sidebar-close {
    display: flex;
  }
  
  /* Mobile sidebar behavior */
  .chat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    z-index: 300;
    border-right: none;
    box-shadow: 2px 0 15px var(--shadow-medium);
  }
  
  .chat-sidebar.active {
    transform: translateX(0);
  }
  
  .chat-main {
    width: 100%;
    margin-left: 0;
  }
  
  /* Mobile quick actions */
  .mobile-quick-actions {
    display: flex;
  }
  
  /* Adjust input for mobile */
  .input-field-container {
    flex-direction: column;
  }
  
  .input-actions {
    align-self: flex-end;
    margin-top: 10px;
  }
  
  /* Mobile conversation actions */
  .conversation-actions {
    position: static;
    transform: none;
    opacity: 1;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
  }
  
  .conversation-title {
    padding-right: 0;
    -webkit-line-clamp: 3;
  }
  
  .conversation-actions button {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .conversation-item {
    padding: 12px;
    margin-bottom: 8px;
  }
  
  /* Responsive feature cards */
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Responsive prompt suggestions */
  .prompt-suggestions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .prompt-btn {
    text-align: center;
  }
  
  /* Adjust message max width */
  .message {
    max-width: 95%;
  }
  
  /* Mobile-specific padding adjustments */
  .chat-messages {
    padding: 15px;
  }
  
  .chat-input-container {
    padding: 15px;
  }
  
  /* Welcome screen mobile adjustments */
  .welcome-content h2 {
    font-size: 1.8rem;
  }
  
  .welcome-content > p {
    font-size: 1rem;
  }
  
  .welcome-icon {
    font-size: 3rem;
  }
  
  /* Overlay content mobile adjustments */
  .overlay-content h2 {
    font-size: 1.6rem;
  }
  
  .lock-icon {
    font-size: 3rem;
  }
  
  /* Better Scrollbar for Mobile */
  .conversation-list::-webkit-scrollbar,
  .chat-messages::-webkit-scrollbar {
    width: 4px;
  }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
  /* GoAktifitas specific adjustments */
  .goaktifitas-container {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
  }
  
  /* Mobile header adjustments */
  .mobile-header {
    padding: 12px 15px;
  }
  
  .mobile-title h1 {
    font-size: 1rem;
  }
  
  .mobile-subtitle {
    font-size: 0.7rem;
  }
  
  /* Sidebar adjustments */
  .chat-sidebar {
    width: 100vw;
  }
  
  .sidebar-header {
    padding: 15px;
  }
  
  .sidebar-header h3 {
    font-size: 1rem;
  }
  
  .new-chat-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .conversation-list {
    padding: 8px;
  }
  
  .conversation-item {
    padding: 10px;
  }
  
  .conversation-title {
    font-size: 0.85rem;
  }
  
  .conversation-time {
    font-size: 0.75rem;
  }
  
  .conversation-actions button {
    width: 30px;
    height: 30px;
  }
  
  /* Welcome content adjustments */
  .welcome-content {
    padding: 20px;
  }
  
  .welcome-icon {
    font-size: 3rem;
  }
  
  .welcome-content h2 {
    font-size: 1.5rem;
  }
  
  .feature-card {
    padding: 15px;
  }
  
  .feature-card i {
    font-size: 1.5rem;
  }
  
  /* Quick actions adjustments */
  .quick-action-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  /* Messages adjustments */
  .chat-messages {
    padding: 10px;
    gap: 15px;
  }
  
  .message-content {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .copy-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  
  /* Input adjustments */
  .chat-input-container {
    padding: 10px;
  }
  
  .input-area {
    padding: 10px 12px;
  }
  
  #messageInput {
    font-size: 0.9rem;
  }
  
  .send-btn {
    width: 36px;
    height: 36px;
  }
  
  /* Input footer adjustments */
  .input-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  /* Toast positioning for mobile */
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
    margin: 0 10px;
  }
  
  /* Hide API usage on very small screens */
  .api-usage-display {
    display: none;
  }
}

/* Landscape Mobile Adjustments */
@media (max-width: 896px) and (orientation: landscape) {
  .welcome-screen {
    padding: 15px;
  }
  
  .welcome-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .welcome-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .welcome-content > p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
}

/* Enhanced Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-glass-light: rgba(255, 255, 255, 0.05);
    --bg-glass-medium: rgba(255, 255, 255, 0.08);
    --text-muted: rgba(255, 255, 255, 0.5);
  }
  
  .goaktifitas-container {
    background: linear-gradient(135deg, 
      #0a0a0a 0%, 
      #1a1a2e 25%, 
      #16213e 50%, 
      #2a1f3d 75%, 
      #ff0050 100%);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-light: rgba(255, 255, 255, 0.5);
    --border-medium: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.8);
  }
  
  .conversation-item {
    border-width: 2px;
  }
  
  .message-content {
    border-width: 2px;
  }
  
  .input-area {
    border-width: 2px;
  }
  
  .message.user .message-content {
    background: var(--primary-pink);
    border: 2px solid #ffffff;
  }
  
  .message.assistant .message-content {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    color: #ffffff;
  }
  
  .send-btn {
    background: var(--primary-pink);
    border: 2px solid #ffffff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .goaktifitas-container {
    animation: none;
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #ff0050 100%);
  }
  
  .loading-spinner {
    animation: none;
    border-top-color: var(--soft-pink);
  }
  
  .typing-dots span {
    animation: none;
    opacity: 0.7;
  }
  
  .streaming-cursor::after {
    animation: none;
    opacity: 1;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
  
  .loading-spinner-large {
    animation: none;
    border: 3px solid var(--soft-pink);
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .usage-bar {
    height: 6px;
  }
  
  .loading-spinner {
    border-width: 3px;
  }
}

/* Print Styles */
@media print {
  .chat-sidebar,
  .chat-input-container,
  .message-actions {
    display: none !important;
  }
  
  .goaktifitas-container {
    background: white !important;
    color: black !important;
  }
  
  .message-content {
    background: white !important;
    border: 1px solid #000 !important;
    color: black !important;
  }
  
  .chat-messages {
    background: white !important;
  }
}

/* Focus management for accessibility */
.chat-sidebar:focus-within,
.chat-main:focus-within {
  outline: 2px solid var(--soft-cyan);
  outline-offset: 2px;
}