/* =============================================================
   LYNQ Messenger – Theme: Dracula
   Class: theme-dracula
   ============================================================= */

body.theme-dracula {
  background: #1e1f29;
}

/* Window */
.theme-dracula .win-window {
  background: #282a36;
  border: 1px solid #44475a;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Titlebar */
.theme-dracula .win-titlebar {
  background: #1e1f29;
  color: #f8f8f2;
  border-bottom: 2px solid #bd93f9;
}

.theme-dracula .win-titlebar-icon {
  opacity: 0.9;
}

.theme-dracula .win-titlebar-logo {
  color: #f8f8f2;
  letter-spacing: 1px;
}

.theme-dracula .lynq-logo-img {
  filter: drop-shadow(0 0 3px rgba(189,147,249,0.4));
}

.theme-dracula .win-titlebar-buttons button {
  background: #44475a;
  border: 1px solid #6272a4;
  color: #ccc;
  border-radius: 3px;
}

.theme-dracula .win-titlebar-buttons button:hover {
  background: #6272a4;
  color: #f8f8f2;
}

.theme-dracula .win-titlebar-buttons .win-btn-close:hover {
  background: #ff5555;
  border-color: #ff5555;
  color: white;
}

/* Buttons */
.theme-dracula .win-button {
  background: #44475a;
  border: 1px solid #6272a4;
  color: #f8f8f2;
  border-radius: 4px;
  transition: all 0.15s;
}

.theme-dracula .win-button:hover {
  background: #6272a4;
  border-color: #6272a4;
}

.theme-dracula .win-button.primary {
  background: #bd93f9;
  border: none;
  color: #282a36;
  font-weight: 700;
}

.theme-dracula .win-button.primary:hover {
  background: #caa8fb;
  box-shadow: 0 0 10px rgba(189,147,249,0.35);
}

/* Form inputs */
.theme-dracula .form-group input,
.theme-dracula .form-group select {
  background: #1e1f29;
  border: 1px solid #44475a;
  border-radius: 6px;
  color: #f8f8f2;
}

.theme-dracula .form-group input:focus,
.theme-dracula .form-group select:focus {
  border-color: #bd93f9;
  box-shadow: 0 0 0 2px rgba(189,147,249,0.2);
  outline: none;
}

.theme-dracula .form-group input::placeholder {
  color: #44475a;
}

.theme-dracula .form-group label {
  color: #6272a4;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.5px;
}

/* Login */
.theme-dracula .login-window {
  border-radius: 8px;
}

.theme-dracula .login-body {
  background: #282a36;
}

.theme-dracula .login-logo h1 {
  color: #bd93f9;
  letter-spacing: 3px;
}

.theme-dracula .login-subtitle {
  color: #6272a4;
  font-style: italic;
}

/* Messages */
.theme-dracula .error-msg {
  color: #ff5555;
}

.theme-dracula .info-msg {
  color: #8be9fd;
}

/* Contact window */
.theme-dracula .contact-window {
  border-radius: 8px;
}

.theme-dracula .user-info-bar {
  background: #1e1f29;
  border-bottom: 2px solid #bd93f9;
}

.theme-dracula .my-nickname {
  color: #f8f8f2;
}

.theme-dracula .my-uin {
  color: #6272a4;
}

.theme-dracula .status-dropdown-wrapper select {
  background: #1e1f29;
  border: 1px solid #44475a;
  color: #f8f8f2;
}

/* Toolbar */
.theme-dracula .toolbar {
  background: #1e1f29;
  border-bottom: 1px solid #44475a;
}

.theme-dracula .toolbar-btn {
  color: #6272a4;
  background: transparent;
  border: none;
}

.theme-dracula .toolbar-btn:hover {
  background: rgba(189,147,249,0.12);
  color: #bd93f9;
}

/* Contact list */
.theme-dracula .contact-list {
  background: #21222c;
  border: none;
  outline: none;
}

.theme-dracula .group-header {
  background: #1e1f29;
  color: #6272a4;
  border-bottom: 1px solid #44475a;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.theme-dracula .group-header:hover {
  background: rgba(189,147,249,0.1);
  color: #bd93f9;
}

.theme-dracula .group-arrow {
  color: #6272a4;
}

.theme-dracula .group-count {
  color: #6272a4;
}

.theme-dracula .group-add-btn {
  color: #6272a4;
  background: transparent;
}

.theme-dracula .contact-item {
  color: #cccfda;
  border-bottom: 1px solid rgba(68,71,90,0.4);
}

.theme-dracula .contact-item:hover {
  background: rgba(189,147,249,0.1);
  color: #f8f8f2;
}

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

.theme-dracula .contact-name {
  color: #cccfda;
}

.theme-dracula .contact-status-msg {
  color: rgba(204,207,218,0.5);
}

/* Bottom bar */
.theme-dracula .bottom-bar {
  background: #1e1f29;
  border-top: 1px solid #44475a;
}

.theme-dracula .server-status {
  color: #50fa7b;
}

.theme-dracula .server-status.disconnected {
  color: #ff5555;
}

.theme-dracula .app-version {
  color: #6272a4;
}

.theme-dracula .ad-banner {
  background: #21222c;
  border-top: 1px solid #44475a;
  color: #6272a4;
}

/* Chat window */
.theme-dracula .chat-window {
  border-radius: 8px;
}

.theme-dracula .chat-toolbar {
  background: #1e1f29;
  border-bottom: 1px solid #44475a;
}

.theme-dracula .chat-toolbar-btn {
  color: #6272a4;
  background: transparent;
  border: none;
}

.theme-dracula .chat-toolbar-btn:hover {
  background: rgba(189,147,249,0.12);
  color: #bd93f9;
}

.theme-dracula .chat-messages {
  background: #21222c;
}

.theme-dracula .chat-msg {
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
}

.theme-dracula .chat-msg-header.mine {
  color: #8be9fd;
}

.theme-dracula .chat-msg-header.theirs {
  color: #ff79c6;
}

.theme-dracula .chat-msg-time {
  color: #6272a4;
}

.theme-dracula .chat-msg-text {
  color: #cccfda;
}

.theme-dracula .chat-typing {
  color: #6272a4;
  font-style: italic;
}

.theme-dracula .chat-input-area {
  background: #1e1f29;
}

.theme-dracula .chat-input-area textarea {
  background: #21222c;
  border: 1px solid #44475a;
  color: #f8f8f2;
}

.theme-dracula .chat-input-area textarea:focus {
  border-color: #bd93f9;
  box-shadow: 0 0 0 2px rgba(189,147,249,0.2);
  outline: none;
}

.theme-dracula .chat-input-area textarea::placeholder {
  color: #44475a;
}

.theme-dracula .chat-system-msg {
  color: #6272a4;
  font-style: italic;
  text-align: center;
}

/* Dialog */
.theme-dracula .dialog-overlay {
  background: rgba(30,31,41,0.85);
}

.theme-dracula .dialog-body {
  background: #282a36;
  border: 1px solid #44475a;
  border-radius: 8px;
}

/* Search */
.theme-dracula .search-results {
  background: #282a36;
  border: 1px solid #44475a;
}

.theme-dracula .search-result-item {
  border-bottom: 1px solid rgba(68,71,90,0.4);
}

.theme-dracula .search-result-item:hover {
  background: rgba(189,147,249,0.1);
}

.theme-dracula .search-result-name {
  color: #f8f8f2;
}

.theme-dracula .search-result-uin {
  color: #6272a4;
}

/* Settings */
.theme-dracula .settings-tabs {
  background: #1e1f29;
  border-bottom: 1px solid #44475a;
}

.theme-dracula .settings-tab {
  color: #6272a4;
  background: transparent;
  border-bottom: 2px solid transparent;
}

.theme-dracula .settings-tab:hover {
  color: #bd93f9;
  background: rgba(189,147,249,0.08);
}

.theme-dracula .settings-tab.active {
  color: #bd93f9;
  border-bottom-color: #bd93f9;
}

.theme-dracula .settings-content {
  background: #282a36;
  color: #cccfda;
}

.theme-dracula .settings-hint {
  color: #6272a4;
  font-size: 11px;
  font-style: italic;
}

.theme-dracula .settings-divider {
  border-color: #44475a;
}

/* Lynq number */
.theme-dracula .lynq-number-display {
  color: #bd93f9;
}

/* Context menu */
.theme-dracula .context-menu {
  background: #282a36;
  border: 1px solid #44475a;
  color: #f8f8f2;
  border-radius: 6px;
}

.theme-dracula .context-menu-item:hover {
  background: rgba(189,147,249,0.2);
  color: #f8f8f2;
}

/* Emoji picker */
.theme-dracula .emoji-picker {
  background: #282a36;
  border: 1px solid #44475a;
}

.theme-dracula .emoji-item:hover {
  background: rgba(189,147,249,0.15);
}

/* Toast */
.theme-dracula .toast {
  background: #282a36;
  border: 1px solid #44475a;
  color: #f8f8f2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

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

.theme-dracula ::-webkit-scrollbar-track {
  background: #1e1f29;
}

.theme-dracula ::-webkit-scrollbar-thumb {
  background: #44475a;
  border-radius: 3px;
}

.theme-dracula ::-webkit-scrollbar-thumb:hover {
  background: #6272a4;
}

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

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