/* ==================== LYNQ THEME – Dark Aero Look ==================== */

body.theme-lynq {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ==================== WINDOW CHROME ==================== */
.theme-lynq .win-window {
  background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
  border: 1px solid #555;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
}

.theme-lynq .win-titlebar {
  background: linear-gradient(180deg, #4a4a5e 0%, #35354a 40%, #2a2a3e 100%);
  color: #e0e0e0;
  font-weight: bold;
  font-size: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid #222;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.theme-lynq .win-titlebar-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 3px rgba(77, 178, 77, 0.5));
}

.theme-lynq .win-titlebar-logo {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(77, 178, 77, 0.5));
}

.theme-lynq .lynq-logo-img {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 0 10px rgba(77, 178, 77, 0.4));
}

.theme-lynq .win-titlebar-buttons button {
  width: 20px;
  height: 18px;
  font-size: 11px;
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
  border: 1px solid #666;
  border-radius: 3px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.15s;
}

.theme-lynq .win-titlebar-buttons button:hover {
  background: linear-gradient(180deg, #666 0%, #4a4a4a 100%);
  color: white;
}

.theme-lynq .win-titlebar-buttons .win-btn-close:hover {
  background: linear-gradient(180deg, #c44 0%, #a22 100%);
  color: white;
}

/* ==================== BUTTONS ==================== */
.theme-lynq .win-button {
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
  border: 1px solid #666;
  border-radius: 4px;
  color: #ddd;
  padding: 4px 16px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.theme-lynq .win-button:hover {
  background: linear-gradient(180deg, #666 0%, #4a4a4a 100%);
  border-color: #888;
  color: white;
}

.theme-lynq .win-button.primary {
  background: linear-gradient(180deg, #4a8c4a 0%, #367036 100%);
  border-color: #5a5;
  color: white;
}

.theme-lynq .win-button.primary:hover {
  background: linear-gradient(180deg, #5a9c5a 0%, #408040 100%);
  border-color: #6b6;
}

/* ==================== INPUTS ==================== */
.theme-lynq .form-group input,
.theme-lynq .form-group select {
  background: #1a1a2a;
  border: 1px solid #555;
  border-radius: 4px;
  color: #e0e0e0;
  padding: 5px 8px;
  font-size: 11px;
  transition: border-color 0.15s;
}

.theme-lynq .form-group input:focus,
.theme-lynq .form-group select:focus {
  border-color: #4DB24D;
  outline: none;
  box-shadow: 0 0 5px rgba(77, 178, 77, 0.3);
}

.theme-lynq .form-group input::placeholder {
  color: #666;
}

.theme-lynq .form-group label {
  color: #bbb;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================== LOGIN SCREEN ==================== */
.theme-lynq .login-window {
  width: 340px;
}

.theme-lynq .login-body {
  padding: 20px;
}

.theme-lynq .login-logo h1 {
  color: #4DB24D;
  font-size: 32px;
  text-shadow: 0 0 10px rgba(77, 178, 77, 0.4), 1px 1px 0 #2a8a2a;
  letter-spacing: 4px;
}

.theme-lynq .login-subtitle {
  color: #888;
  font-size: 11px;
}


.theme-lynq .error-msg {
  color: #f66;
}

.theme-lynq .info-msg {
  color: #6f6;
}

/* ==================== CONTACT LIST WINDOW ==================== */
.theme-lynq .contact-window {
  width: 240px;
  height: 540px;
  border-radius: 8px;
}

/* User Info Bar – Avatar prominent */
.theme-lynq .user-info-bar {
  background: linear-gradient(180deg, #3a3a4e 0%, #2d2d40 100%);
  border-bottom: 1px solid #444;
  padding: 10px 12px;
  gap: 10px;
}

.theme-lynq .user-flower {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(77, 178, 77, 0.4);
  border: 2px solid #555;
}

.theme-lynq .user-flower::after {
  width: 10px;
  height: 10px;
}

.theme-lynq .user-avatar {
  border-color: #555;
}

.theme-lynq .avatar-preview {
  border-color: #555;
}

.theme-lynq .my-nickname {
  font-size: 13px;
  color: #e0e0e0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.theme-lynq .my-uin {
  color: #888;
  font-size: 10px;
}

.theme-lynq .status-dropdown-wrapper select {
  background: #2a2a3a;
  color: #ccc;
  border: 1px solid #555;
  border-radius: 3px;
  font-size: 10px;
  padding: 2px 4px;
}

/* Toolbar */
.theme-lynq .toolbar {
  background: linear-gradient(180deg, #353548 0%, #2a2a3c 100%);
  border-bottom: 1px solid #444;
  padding: 4px 6px;
}

.theme-lynq .toolbar-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  transition: all 0.15s;
}

.theme-lynq .toolbar-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* Contact List */
.theme-lynq .contact-list {
  background: #1e1e2e;
  border: none;
  border-radius: 0;
  margin: 0;
  border-top: 1px solid #333;
}

.theme-lynq .group-header {
  background: linear-gradient(180deg, #2e2e40 0%, #262636 100%);
  border-bottom: 1px solid #333;
  color: #aaa;
  padding: 5px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-lynq .group-header:hover {
  background: linear-gradient(180deg, #363648 0%, #2e2e3e 100%);
  color: #ccc;
}

.theme-lynq .group-arrow {
  color: #666;
  font-size: 9px;
}

.theme-lynq .group-count {
  color: #666;
  font-size: 9px;
}

.theme-lynq .group-add-btn {
  background: #3a3a4a;
  border-color: #555;
  color: #ccc;
}

.theme-lynq .group-add-btn:hover {
  background: #4a4a5a;
}

.theme-lynq .contact-item {
  padding: 6px 10px 6px 20px;
  color: #ccc;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.1s;
}

.theme-lynq .contact-item:hover {
  background: linear-gradient(180deg, rgba(77,178,77,0.2) 0%, rgba(77,178,77,0.1) 100%);
  color: white;
}

.theme-lynq .contact-item.has-message .contact-name {
  color: #ff6b6b;
  text-shadow: 0 0 5px rgba(255,100,100,0.3);
}

.theme-lynq .contact-item:hover .contact-name {
  color: white;
}

.theme-lynq .contact-name {
  font-size: 12px;
}

.theme-lynq .contact-status-msg {
  color: #666;
}

.theme-lynq .contact-last-seen {
  color: #555;
}

/* Status Icons with glow */
.theme-lynq .contact-status-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.theme-lynq .contact-status-icon.online { background: #4DB24D; box-shadow: 0 0 6px rgba(77,178,77,0.5); }
.theme-lynq .contact-status-icon.freechat { background: #00cc00; box-shadow: 0 0 6px rgba(0,204,0,0.5); }
.theme-lynq .contact-status-icon.away { background: #e6b800; box-shadow: 0 0 6px rgba(230,184,0,0.3); }
.theme-lynq .contact-status-icon.na { background: #e68a00; box-shadow: 0 0 6px rgba(230,138,0,0.3); }
.theme-lynq .contact-status-icon.occupied { background: #cc3333; box-shadow: 0 0 6px rgba(204,51,51,0.3); }
.theme-lynq .contact-status-icon.dnd { background: #cc3333; box-shadow: 0 0 6px rgba(204,51,51,0.3); }
.theme-lynq .contact-status-icon.offline { background: #555; }

/* Bottom bar */
.theme-lynq .bottom-bar {
  background: linear-gradient(180deg, #2a2a3c 0%, #222234 100%);
  border-top: 1px solid #444;
  padding: 4px 10px;
  font-size: 10px;
}

.theme-lynq .server-status {
  color: #4DB24D;
  text-shadow: 0 0 4px rgba(77,178,77,0.3);
}

.theme-lynq .server-status.disconnected {
  color: #f66;
}

.theme-lynq .app-version {
  color: #555;
}

.theme-lynq .update-banner {
  background: linear-gradient(180deg, #c44 0%, #a22 100%);
}

/* Ad Banner Placeholder */
.theme-lynq .ad-banner {
  display: block !important;
  background: linear-gradient(180deg, #252538 0%, #1e1e2e 100%);
  border-top: 1px solid #333;
  padding: 8px;
  text-align: center;
  color: #555;
  font-size: 9px;
  font-style: italic;
  min-height: 50px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* ==================== CHAT WINDOW ==================== */
.theme-lynq .chat-window {
  width: 450px;
  height: 500px;
  border-radius: 8px;
}

/* Chat contact info bar */
.theme-lynq .chat-toolbar {
  background: linear-gradient(180deg, #353548 0%, #2a2a3c 100%);
  border-bottom: 1px solid #444;
  padding: 4px 8px;
}

.theme-lynq .chat-toolbar-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ccc;
  padding: 4px 10px;
  transition: all 0.15s;
}

.theme-lynq .chat-toolbar-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.theme-lynq .chat-search-bar input {
  background: #1a1a2a;
  border: 1px solid #555;
  border-radius: 3px;
  color: #e0e0e0;
}

/* Chat messages area */
.theme-lynq .chat-messages {
  background: #1a1a28;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 10px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.theme-lynq .chat-msg {
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}

.theme-lynq .chat-msg-header.mine {
  color: #6a9fea;
  font-size: 11px;
}

.theme-lynq .chat-msg-header.theirs {
  color: #ea6a6a;
  font-size: 11px;
}

.theme-lynq .chat-image { border-color: #444; }
.theme-lynq .file-link { background: #2a2a3a; border-color: #555; color: #ccc; }
.theme-lynq .file-link:hover { background: #3a3a4a; }
.theme-lynq .chat-messages.drag-over { background: rgba(77,178,77,0.1) !important; }

.theme-lynq .chat-msg-time {
  color: #555;
  font-size: 9px;
}

.theme-lynq .chat-msg-text {
  color: #d0d0d0;
  line-height: 1.5;
}

.theme-lynq .chat-typing {
  color: #666;
  padding: 2px 10px;
  font-size: 10px;
}

/* Chat input */
.theme-lynq .chat-input-area {
  background: linear-gradient(180deg, #2a2a3c 0%, #252538 100%);
  padding: 8px;
}

.theme-lynq .chat-input-area textarea {
  background: #1a1a28;
  border: 1px solid #444;
  border-radius: 4px;
  color: #e0e0e0;
  padding: 6px 8px;
  font-size: 12px;
  resize: none;
}

.theme-lynq .chat-input-area textarea:focus {
  border-color: #4DB24D;
  outline: none;
  box-shadow: 0 0 5px rgba(77,178,77,0.2);
}

.theme-lynq .chat-input-area textarea::placeholder {
  color: #555;
}

/* System messages */
.theme-lynq .chat-system-msg {
  color: #555;
}

/* ==================== DIALOGS ==================== */
.theme-lynq .dialog-overlay {
  background: rgba(0,0,0,0.6);
}

.theme-lynq .dialog {
  border-radius: 8px;
}

.theme-lynq .dialog-body {
  color: #ccc;
}

.theme-lynq .dialog-body p {
  color: #ccc;
}

/* Search results */
.theme-lynq .search-results {
  background: #1a1a28;
  border-radius: 4px;
  border: 1px solid #333;
}

.theme-lynq .search-result-item {
  border-bottom: 1px solid #333;
  padding: 8px 10px;
  color: #ccc;
}

.theme-lynq .search-result-item:hover {
  background: rgba(77,178,77,0.1);
}

.theme-lynq .search-result-name {
  color: #e0e0e0;
}

.theme-lynq .search-result-uin {
  color: #666;
}

/* Offline messages */
.theme-lynq #offline-messages-list .offline-msg-item {
  background: rgba(255,255,200,0.05);
  border: 1px solid #444;
  border-radius: 4px;
  color: #ccc;
}

.theme-lynq .offline-msg-from {
  color: #ea6a6a;
}

.theme-lynq .offline-msg-time {
  color: #666;
}

/* ==================== SKIN SWITCHER ==================== */
.theme-lynq .skin-switcher {
  background: linear-gradient(180deg, #2a2a3c 0%, #222234 100%);
  border-top: 1px solid #444;
}

.theme-lynq .skin-btn {
  background: transparent;
  color: #888;
  border: 1px solid #444;
  border-radius: 3px;
}

.theme-lynq .skin-btn:hover {
  color: #ccc;
  border-color: #666;
}

.theme-lynq .skin-btn.active {
  color: #4DB24D;
  border-color: #4DB24D;
  background: rgba(77,178,77,0.1);
}

/* ==================== SCROLLBAR – Dark ==================== */
.theme-lynq ::-webkit-scrollbar {
  width: 8px;
}

.theme-lynq ::-webkit-scrollbar-track {
  background: #1a1a28;
  border: none;
}

.theme-lynq ::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
  border: none;
}

.theme-lynq ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.theme-lynq ::-webkit-scrollbar-button {
  display: none;
}

/* ==================== SETTINGS ==================== */
.theme-lynq .settings-dialog {
  border-radius: 8px;
}

.theme-lynq .settings-tabs {
  background: linear-gradient(180deg, #353548 0%, #2a2a3c 100%);
  border-bottom: 1px solid #444;
}

.theme-lynq .settings-tab {
  background: transparent;
  color: #888;
  border-bottom: 2px solid transparent;
}

.theme-lynq .settings-tab:hover {
  background: rgba(255,255,255,0.05);
  color: #ccc;
}

.theme-lynq .settings-tab.active {
  color: #4DB24D;
  border-bottom-color: #4DB24D;
}

.theme-lynq .settings-content {
  color: #ccc;
}

.theme-lynq .settings-hint {
  color: #666;
}

.theme-lynq .settings-divider {
  border-top-color: #444;
}

.theme-lynq .lynq-number-display {
  color: #4DB24D;
  text-shadow: 0 0 5px rgba(77,178,77,0.3);
}

.theme-lynq .settings-content input[type="checkbox"] {
  accent-color: #4DB24D;
}

/* ==================== CONTEXT MENU ==================== */
.theme-lynq .context-menu {
  background: #2a2a3a;
  border: 1px solid #555;
  border-radius: 4px;
  color: #ddd;
}

.theme-lynq .context-menu-item:hover {
  background: rgba(77,178,77,0.3);
  color: white;
}

/* ==================== EMOJI PICKER ==================== */
.theme-lynq .emoji-picker {
  background: #2a2a3a;
  border: 1px solid #555;
  border-radius: 6px;
}

.theme-lynq .emoji-item:hover {
  background: rgba(77,178,77,0.3);
}

/* ==================== TOAST ==================== */
.theme-lynq .toast {
  background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
  border: 1px solid #555;
  border-radius: 6px;
  color: #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.theme-lynq .toast-close { color: #888; }
.theme-lynq .toast-close:hover { color: #fff; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
  .theme-lynq .contact-window {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .theme-lynq .chat-window {
    width: 100%;
    height: 100%;
    border-radius: 0;
    position: static;
    transform: none;
  }

  .theme-lynq .login-window {
    width: 100%;
    max-width: 340px;
    border-radius: 0;
  }
}
