/* =============================================================
   LYNQ Messenger – Theme: Deep Space
   Class: theme-deepspace
   ============================================================= */

body.theme-deepspace {
  background: #020310;
  background-attachment: fixed;
}

/* Window */
.theme-deepspace .win-window {
  background: rgba(10,5,40,0.95);
  border: 1px solid rgba(120,80,255,0.3);
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(80,40,255,0.2);
}

/* Titlebar */
.theme-deepspace .win-titlebar {
  background: linear-gradient(180deg, rgba(30,15,80,0.9), rgba(15,8,50,0.9));
  color: #a78bfa;
  border-bottom: 1px solid rgba(120,80,255,0.3);
}

.theme-deepspace .win-titlebar-icon {
  opacity: 0.8;
}

.theme-deepspace .win-titlebar-logo {
  color: #a78bfa;
  letter-spacing: 2px;
}

.theme-deepspace .lynq-logo-img {
  filter: drop-shadow(0 0 4px rgba(167,139,250,0.5));
}

.theme-deepspace .win-titlebar-buttons button {
  background: rgba(15,8,50,0.8);
  border: 1px solid rgba(120,80,255,0.2);
  color: rgba(167,139,250,0.7);
  border-radius: 3px;
}

.theme-deepspace .win-titlebar-buttons button:hover {
  background: rgba(124,58,237,0.3);
  border-color: rgba(167,139,250,0.4);
  color: #c4b5fd;
}

.theme-deepspace .win-titlebar-buttons .win-btn-close:hover {
  background: rgba(239,68,68,0.3);
  border-color: rgba(239,68,68,0.5);
  color: #fca5a5;
}

/* Buttons */
.theme-deepspace .win-button {
  background: transparent;
  border: 1px solid rgba(167,139,250,0.2);
  color: #8b7baa;
  border-radius: 6px;
  transition: all 0.2s;
}

.theme-deepspace .win-button:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(167,139,250,0.4);
  color: #c4b5fd;
}

.theme-deepspace .win-button.primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  color: white;
  box-shadow: 0 0 15px rgba(124,58,237,0.4);
}

.theme-deepspace .win-button.primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 0 20px rgba(124,58,237,0.6);
}

/* Form inputs */
.theme-deepspace .form-group input,
.theme-deepspace .form-group select {
  background: rgba(0,0,30,0.6);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 6px;
  color: #c4b5fd;
  font-family: monospace;
}

.theme-deepspace .form-group input:focus,
.theme-deepspace .form-group select:focus {
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 10px rgba(167,139,250,0.2);
  outline: none;
}

.theme-deepspace .form-group input::placeholder {
  color: rgba(167,139,250,0.3);
}

.theme-deepspace .form-group label {
  color: rgba(167,139,250,0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 9px;
}

/* Login */
.theme-deepspace .login-window {
  border-radius: 10px;
}

.theme-deepspace .login-body {
  background: rgba(10,5,40,0.98);
}

.theme-deepspace .login-logo h1 {
  color: #c4b5fd;
  font-weight: 200;
  letter-spacing: 8px;
}

.theme-deepspace .login-subtitle {
  color: #6d5e8a;
  letter-spacing: 3px;
}

/* Messages */
.theme-deepspace .error-msg {
  color: #f87171;
}

.theme-deepspace .info-msg {
  color: #a78bfa;
}

/* Contact window */
.theme-deepspace .contact-window {
  border-radius: 10px;
}

.theme-deepspace .user-info-bar {
  background: rgba(15,8,50,0.8);
  border-bottom: 1px solid rgba(120,80,255,0.2);
}

.theme-deepspace .my-nickname {
  color: #c4b5fd;
}

.theme-deepspace .my-uin {
  color: #6d5e8a;
}

.theme-deepspace .status-dropdown-wrapper select {
  background: rgba(10,5,40,0.8);
  border: 1px solid rgba(120,80,255,0.2);
  color: #a78bfa;
}

/* Toolbar */
.theme-deepspace .toolbar {
  background: rgba(10,5,40,0.8);
  border-bottom: 1px solid rgba(120,80,255,0.15);
}

.theme-deepspace .toolbar-btn {
  color: rgba(167,139,250,0.6);
  background: transparent;
  border: none;
}

.theme-deepspace .toolbar-btn:hover {
  background: rgba(124,58,237,0.2);
  color: #a78bfa;
}

/* Contact list */
.theme-deepspace .contact-list {
  background: rgba(2,3,16,0.95);
  border: none;
  outline: none;
}

.theme-deepspace .group-header {
  background: rgba(15,8,50,0.6);
  color: rgba(167,139,250,0.5);
  border-bottom: 1px solid rgba(120,80,255,0.1);
}

.theme-deepspace .group-header:hover {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
}

.theme-deepspace .group-arrow {
  color: rgba(167,139,250,0.4);
}

.theme-deepspace .group-count {
  color: rgba(167,139,250,0.35);
}

.theme-deepspace .group-add-btn {
  color: rgba(167,139,250,0.5);
  background: transparent;
}

.theme-deepspace .contact-item {
  color: #8b7baa;
  border-bottom: 1px solid rgba(120,80,255,0.05);
}

.theme-deepspace .contact-item:hover {
  background: rgba(124,58,237,0.15);
  color: #c4b5fd;
}

.theme-deepspace .contact-item.has-message .contact-name {
  color: #c084fc;
  font-weight: bold;
}

.theme-deepspace .contact-name {
  color: #8b7baa;
}

.theme-deepspace .contact-status-msg {
  color: rgba(139,123,170,0.5);
}

/* Bottom bar */
.theme-deepspace .bottom-bar {
  background: rgba(5,3,20,0.9);
  border-top: 1px solid rgba(120,80,255,0.15);
}

.theme-deepspace .server-status {
  color: #a78bfa;
}

.theme-deepspace .server-status.disconnected {
  color: #f87171;
}

.theme-deepspace .app-version {
  color: rgba(167,139,250,0.3);
}

.theme-deepspace .ad-banner {
  background: rgba(10,5,40,0.8);
  border-top: 1px solid rgba(120,80,255,0.1);
  color: rgba(139,123,170,0.5);
}

/* Chat window */
.theme-deepspace .chat-window {
  border-radius: 10px;
}

.theme-deepspace .chat-toolbar {
  background: linear-gradient(180deg, rgba(30,15,80,0.9), rgba(15,8,50,0.9));
  border-bottom: 1px solid rgba(120,80,255,0.2);
}

.theme-deepspace .chat-toolbar-btn {
  color: rgba(167,139,250,0.6);
  background: transparent;
  border: none;
}

.theme-deepspace .chat-toolbar-btn:hover {
  background: rgba(124,58,237,0.2);
  color: #a78bfa;
}

.theme-deepspace .chat-messages {
  background: rgba(2,3,16,0.95);
}

.theme-deepspace .chat-msg {
  background: rgba(124,58,237,0.04);
  border-radius: 6px;
}

.theme-deepspace .chat-msg-header.mine {
  color: #a78bfa;
}

.theme-deepspace .chat-msg-header.theirs {
  color: #c084fc;
}

.theme-deepspace .chat-msg-time {
  color: rgba(120,80,255,0.35);
}

.theme-deepspace .chat-msg-text {
  color: #9d8fbb;
}

.theme-deepspace .chat-typing {
  color: rgba(167,139,250,0.4);
  font-style: italic;
}

.theme-deepspace .chat-input-area {
  background: rgba(5,3,20,0.9);
}

.theme-deepspace .chat-input-area textarea {
  background: rgba(2,3,16,0.8);
  border: 1px solid rgba(120,80,255,0.2);
  color: #c4b5fd;
}

.theme-deepspace .chat-input-area textarea:focus {
  border-color: rgba(167,139,250,0.4);
  box-shadow: 0 0 8px rgba(167,139,250,0.15);
  outline: none;
}

.theme-deepspace .chat-input-area textarea::placeholder {
  color: rgba(167,139,250,0.25);
}

.theme-deepspace .chat-system-msg {
  color: rgba(167,139,250,0.4);
  font-style: italic;
  text-align: center;
}

/* Dialog */
.theme-deepspace .dialog-overlay {
  background: rgba(2,3,16,0.85);
}

.theme-deepspace .dialog-body {
  background: rgba(10,5,40,0.98);
  border: 1px solid rgba(120,80,255,0.3);
  border-radius: 10px;
}

/* Search */
.theme-deepspace .search-results {
  background: rgba(10,5,40,0.98);
  border: 1px solid rgba(120,80,255,0.2);
}

.theme-deepspace .search-result-item {
  border-bottom: 1px solid rgba(120,80,255,0.05);
}

.theme-deepspace .search-result-item:hover {
  background: rgba(124,58,237,0.15);
}

.theme-deepspace .search-result-name {
  color: #c4b5fd;
}

.theme-deepspace .search-result-uin {
  color: rgba(167,139,250,0.4);
}

/* Settings */
.theme-deepspace .settings-tabs {
  background: rgba(10,5,40,0.9);
  border-bottom: 1px solid rgba(120,80,255,0.2);
}

.theme-deepspace .settings-tab {
  color: rgba(167,139,250,0.5);
  background: transparent;
  border-bottom: 2px solid transparent;
}

.theme-deepspace .settings-tab:hover {
  color: #a78bfa;
  background: rgba(124,58,237,0.1);
}

.theme-deepspace .settings-tab.active {
  color: #a78bfa;
  border-bottom-color: #7c3aed;
}

.theme-deepspace .settings-content {
  background: rgba(10,5,40,0.9);
  color: #9d8fbb;
}

.theme-deepspace .settings-hint {
  color: rgba(167,139,250,0.4);
  font-size: 11px;
}

.theme-deepspace .settings-divider {
  border-color: rgba(120,80,255,0.15);
}

/* Lynq number */
.theme-deepspace .lynq-number-display {
  color: #a78bfa;
  text-shadow: 0 0 5px rgba(167,139,250,0.3);
}

/* Context menu */
.theme-deepspace .context-menu {
  background: rgba(15,8,50,0.98);
  border: 1px solid rgba(120,80,255,0.3);
  color: #9d8fbb;
  border-radius: 6px;
}

.theme-deepspace .context-menu-item:hover {
  background: rgba(124,58,237,0.2);
  color: #c4b5fd;
}

/* Emoji picker */
.theme-deepspace .emoji-picker {
  background: rgba(10,5,40,0.98);
  border: 1px solid rgba(120,80,255,0.3);
}

.theme-deepspace .emoji-item:hover {
  background: rgba(124,58,237,0.2);
}

/* Toast */
.theme-deepspace .toast {
  background: rgba(15,8,50,0.95);
  border: 1px solid rgba(120,80,255,0.3);
  color: #c4b5fd;
  box-shadow: 0 4px 16px rgba(80,40,255,0.25);
}

/* Scrollbars */
.theme-deepspace ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.theme-deepspace ::-webkit-scrollbar-track {
  background: rgba(2,3,16,0.95);
}

.theme-deepspace ::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.4);
  border-radius: 3px;
}

.theme-deepspace ::-webkit-scrollbar-thumb:hover {
  background: rgba(124,58,237,0.65);
}

.theme-deepspace ::-webkit-scrollbar-button {
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .theme-deepspace .contact-window {
    width: 100%;
    border-radius: 0;
  }
  .theme-deepspace .chat-window {
    width: 100%;
    border-radius: 0;
  }
  .theme-deepspace .win-window {
    border-radius: 0;
  }
}
