/* ========== NUMEX AI PRO - TAM VE EKSİKSİZ CSS ========== */

/* CSS Variables */
:root {
  --bg-primary-default: #000;
  --bg-secondary-default: #111;
  --text-color-default: #ccc;
  --input-bg-default: #222;
  --border-color-default: #333;
  --chat-ai-bg-default: var(--input-bg-default);

  --bg-primary-light: #fff;
  --bg-secondary-light: #f0f0f0;
  --text-color-light: #333;
  --input-bg-light: #e9e9e9;
  --border-color-light: #ccc;
  --chat-ai-bg-light: #e9ecef;

  --bg-primary: var(--bg-primary-default);
  --bg-secondary: var(--bg-secondary-default);
  --text-color: var(--text-color-default);
  --input-bg: var(--input-bg-default);
  --border-color: var(--border-color-default);
  --chat-ai-bg: var(--chat-ai-bg-default);
  --chat-ai-text: var(--text-color);

  --accent-color-green: #1de9b6;
  --accent-color-blue: #007bff;
  --accent-color-purple: #6f42c1;
  --accent-color-orange: #fd7e14;
  --accent-color-red: #dc3545;
  --accent-color: var(--accent-color-green);
  --accent-color-rgb: 30, 233, 182;

  --chat-user-bg: var(--accent-color);
  --chat-user-text: var(--bg-primary);
  --toast-bg: rgba(0, 0, 0, 0.85);
  --toast-text: white;
  --modal-overlay-bg: rgba(0, 0, 0, 0.6);
  --modal-bg: var(--bg-secondary);
  --modal-text: var(--text-color);
  --link-color: var(--accent-color);
  --prompt-bg: #333;
  --prompt-hover-bg: #444;
  --evaluation-active-color: #ffd700;

  --body-font-family: 'Segoe UI', Arial, sans-serif;
  --body-font-size: 1rem;
  --chat-density-padding: 12px 18px;
}

/* Base Styles */
body {
  margin: 0;
  padding-top: 70px;
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  transition: background 0.3s, color 0.3s, font-family 0.3s, font-size 0.3s;
}

body.reduce-animations * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Material Icons */
.material-icons-outlined {
  font-family: 'Material Icons Outlined';
  font-size: calc(var(--body-font-size) * 1.5);
  color: var(--accent-color);
  display: inline-block;
  vertical-align: middle;
}

/* Header */
header.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  box-sizing: border-box;
  transition: background 0.3s;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-left button, .nav-right button {
  padding: 8px;
  margin: 0 2px;
  height: 44px;
  display: flex;
  align-items: center;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.nav-center h1 {
  margin: 0;
  font-size: calc(var(--body-font-size) * 1.8);
  font-weight: 900;
  color: var(--accent-color);
  letter-spacing: 1px;
  transition: color 0.3s;
  animation: logo-pulse 2s infinite alternate;
}

.nav-center p {
  margin: 2px 0 0;
  font-size: calc(var(--body-font-size) * 0.9);
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-left button, .nav-right button, .icon-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-left button:hover, .nav-right button:hover, .icon-btn:hover {
  background: rgba(var(--accent-color-rgb), 0.15);
}

.nav-right .material-icons-outlined {
  color: var(--text-color);
}

.nav-right button:hover .material-icons-outlined {
  color: var(--accent-color);
}

/* PRO Button Styles */
.new-chat-btn {
  background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.8)) !important;
  color: white !important;
  border-radius: 20px !important;
  transition: all 0.3s ease !important;
}

.new-chat-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.4) !important;
}

.pro-tune-btn {
  background: linear-gradient(135deg, #6f42c1, #007bff) !important;
  color: white !important;
  position: relative;
  overflow: hidden;
}

.pro-tune-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.pro-tune-btn:hover:before {
  left: 100%;
}

.voice-chat-btn.voice-active {
  background: var(--accent-color) !important;
  color: white !important;
  animation: voice-pulse 2s infinite;
}

@keyframes voice-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.8);
  }
}

.send-btn {
  background: var(--accent-color) !important;
  color: white !important;
  transition: all 0.2s ease !important;
}

.send-btn:hover {
  background: rgba(var(--accent-color-rgb), 0.9) !important;
  transform: scale(1.05) !important;
}

/* Sidebar */
#sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 280px;
  height: calc(100% - 70px);
  background: var(--bg-secondary);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out, background 0.3s;
  z-index: 999;
  box-shadow: 2px 0 5px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#sidebar.open {
  transform: translateX(0);
}

#sidebarContent {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
}

/* Sidebar Sections */
.sidebar-section {
  margin: 0;
  padding: 20px 15px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section h3 {
  margin: 0 0 15px 0;
  color: var(--accent-color);
  font-size: 0.9em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-section h3 .material-icons-outlined {
  font-size: 1.2em;
}

/* User Section */
.user-section {
  background: rgba(var(--accent-color-rgb), 0.05);
  border-bottom: 2px solid var(--border-color);
}

.sidebar-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(var(--accent-color-rgb), 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
}

.sidebar-user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}

.sidebar-user-info {
  flex: 1;
}

.sidebar-user-name {
  display: block;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95em;
  margin-bottom: 4px;
}

.sidebar-user-plan {
  display: block;
  font-size: 0.75em;
  color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-user-plan.pro {
  background: linear-gradient(45deg, #6f42c1, #007bff);
  color: white;
  animation: pro-glow 2s infinite alternate;
}

@keyframes pro-glow {
  from { box-shadow: 0 0 5px rgba(111, 66, 193, 0.5); }
  to { box-shadow: 0 0 15px rgba(111, 66, 193, 0.8); }
}

.sidebar-user-plan.platinum {
  background: linear-gradient(45deg, #ffd700, #ffb347);
  color: #333;
  font-weight: bold;
}

.sidebar-auth-buttons {
  text-align: center;
}

.sidebar-auth-btn {
  width: 100%;
  padding: 12px 15px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.sidebar-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.4);
}

/* Model Selector */
.sidebar-model-selector {
  margin-top: 5px;
}

.sidebar-model-btn {
  width: 100%;
  padding: 12px 15px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.sidebar-model-btn:hover {
  border-color: var(--accent-color);
  background: var(--prompt-hover-bg);
}

.sidebar-model-btn span:nth-child(2) {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.sidebar-model-btn span:last-child {
  color: var(--accent-color);
}

.sidebar-model-list {
  margin-top: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

.model-option {
  width: 100%;
  padding: 10px 15px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.model-option:last-child {
  border-bottom: none;
}

.model-option:hover {
  background: var(--prompt-hover-bg);
}

.model-option.active {
  background: rgba(var(--accent-color-rgb), 0.1);
  color: var(--accent-color);
}

.model-option .checkmark {
  margin-left: auto;
  font-weight: bold;
}

.model-option span:nth-child(2) {
  flex: 1;
  text-align: left;
}

/* Sidebar Lists */
.sidebar-tools, .sidebar-platforms, .sidebar-support, .sidebar-user-menu, .sidebar-history, .sidebar-gallery, .sidebar-help {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-tools li, .sidebar-platforms li, .sidebar-support li, .sidebar-user-menu li, .sidebar-history li, .sidebar-gallery li, .sidebar-help li {
  padding: 12px 15px;
  cursor: pointer;
  color: var(--text-color);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  margin: 4px 0;
  position: relative;
}

.sidebar-tools li:hover, .sidebar-platforms li:hover, .sidebar-support li:hover, .sidebar-user-menu li:hover, .sidebar-history li:hover, .sidebar-gallery li:hover, .sidebar-help li:hover {
  background: var(--prompt-hover-bg);
  color: var(--accent-color);
  transform: translateX(3px);
}

.sidebar-tools li .material-icons-outlined, .sidebar-platforms li .material-icons-outlined, .sidebar-support li .material-icons-outlined, .sidebar-user-menu li .material-icons-outlined, .sidebar-history li .material-icons-outlined, .sidebar-gallery li .material-icons-outlined, .sidebar-help li .material-icons-outlined {
  color: var(--accent-color);
  font-size: 1.3em;
}

.sidebar-tools li:hover .material-icons-outlined, .sidebar-platforms li:hover .material-icons-outlined, .sidebar-support li:hover .material-icons-outlined, .sidebar-user-menu li:hover .material-icons-outlined, .sidebar-history li:hover .material-icons-outlined, .sidebar-gallery li:hover .material-icons-outlined, .sidebar-help li:hover .material-icons-outlined {
  color: inherit;
}

/* Platform Status */
.sidebar-platforms li.active {
  background: rgba(var(--accent-color-rgb), 0.15);
  color: var(--accent-color);
  font-weight: 600;
}

.sidebar-platforms li.active .status-indicator {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
}

/* Settings Button */
.sidebar-settings-btn {
  width: 100%;
  padding: 15px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-size: 0.95em;
  font-weight: 500;
}

.sidebar-settings-btn:hover {
  border-color: var(--accent-color);
  background: var(--prompt-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-settings-btn .material-icons-outlined:first-child {
  color: var(--accent-color);
  font-size: 1.4em;
}

.sidebar-settings-btn span:nth-child(2) {
  flex: 1;
  text-align: left;
}

.sidebar-settings-btn .material-icons-outlined:last-child {
  font-size: 1.1em;
  opacity: 0.7;
}

/* User Menu Special Items */
.sidebar-user-menu li.upgrade-item {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.sidebar-user-menu li.upgrade-item:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
}

.sidebar-user-menu li.logout-item:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Chat Container */
.chat-container {
  flex-grow: 1;
  padding: 30px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 120px;
}

/* Chat Messages */
.chat-message {
  max-width: 75%;
  padding: var(--chat-density-padding);
  border-radius: 25px;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: calc(var(--body-font-size) * 0.95);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  position: relative;
}

.chat-message.user {
  align-self: flex-end;
  background-color: var(--chat-user-bg);
  color: var(--chat-user-text);
  border-bottom-right-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.chat-message.ai {
  align-self: flex-start;
  background-color: var(--chat-ai-bg);
  color: var(--chat-ai-text);
  border-bottom-left-radius: 8px;
  padding-bottom: 40px;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
}

.chat-message.ai:before {
  content: '💎';
  position: absolute;
  top: 10px;
  left: -30px;
  font-size: 0.8em;
  opacity: 0.7;
}

.chat-message p {
  margin: 0;
}

.chat-message p code {
  background-color: rgba(var(--accent-color-rgb),0.1);
  border: 1px solid rgba(var(--accent-color-rgb),0.2);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
}

body.light-mode .chat-message p code {
  background-color: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

.chat-message pre {
  background-color: var(--input-bg);
  color: #abb2bf;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin: 10px 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: calc(var(--body-font-size) * 0.9);
}

body.light-mode .chat-message pre {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.chat-message pre code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  white-space: pre;
}

.message-time {
  font-size: calc(var(--body-font-size) * 0.75);
  margin-top: 5px;
  display: block;
  text-align: right;
  opacity: 0.7;
}

.message-thinking-time {
  font-size: calc(var(--body-font-size) * 0.7);
  opacity: 0.7;
  margin-right: 5px;
  display: inline-block;
}

.chat-message.user .message-time {
  color: var(--chat-user-text);
}

.chat-message.ai .message-time {
  color: var(--chat-ai-text);
}

.chat-message.ai .ai-message-actions {
  position: absolute;
  bottom: 5px;
  right: 10px;
  display: flex;
  gap: 5px;
  background: var(--chat-ai-bg);
  border-radius: 10px;
  padding: 3px 5px;
  align-items: center;
}

.chat-message.ai .ai-message-actions .icon-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  box-shadow: none;
  opacity: 0.7;
}

.chat-message.ai .ai-message-actions .icon-btn:hover {
  opacity: 1;
  background: rgba(var(--accent-color-rgb), 0.1);
}

.chat-message.ai .ai-message-actions .evaluation-btn.active .material-icons-outlined {
  color: var(--evaluation-active-color);
}

.chat-message.image-message {
  padding: 5px;
  background-color: transparent;
  border-radius: 15px;
  max-width: 60%;
}

.chat-message.image-message img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-message.image-message img:hover {
  transform: scale(1.03);
}

.chat-message.ai.image-message {
  background-color: var(--chat-ai-bg);
  align-self: flex-start;
}

/* Typing Indicator */
.typing-indicator {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--chat-ai-bg), rgba(var(--accent-color-rgb), 0.05));
  border-left: 3px solid var(--accent-color);
  color: var(--chat-ai-text);
  padding: 10px 18px;
  border-radius: 25px;
  border-bottom-left-radius: 8px;
  font-size: calc(var(--body-font-size) * 0.9);
  font-style: italic;
  display: none;
  margin-bottom: 12px;
}

.typing-indicator .loading-dots span {
  animation: blink 1.4s infinite;
  opacity: 0;
}

.typing-indicator .loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator .loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

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

.chat-message.loading {
  font-style: italic;
  opacity: 0.8;
}

/* Chat Input */
.chat-input-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10px;
  z-index: 100;
}

.chat-input {
  position: relative;
  width: calc(100% - 40px);
  max-width: 800px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  transition: background 0.3s, border-color 0.3s;
  margin: 0 auto;
}

.chat-input:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.5);
}

.chat-input:has(#fileInput:focus) {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.3);
}

.textarea-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.chat-input textarea {
  flex: 1;
  background: var(--input-bg);
  border: none;
  border-radius: 20px;
  padding: 10px 35px 10px 15px;
  color: var(--text-color);
  font-size: var(--body-font-size);
  font-family: var(--body-font-family);
  line-height: 1.4;
  outline: none;
  resize: none;
  overflow-y: hidden;
  min-height: 20px;
  max-height: 120px;
  box-sizing: border-box;
}

.clear-input-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px !important;
  height: 28px !important;
  background-color: transparent !important;
  padding: 0 !important;
  opacity: 0.6;
  cursor:pointer;
  display:none;
}

.clear-input-btn:hover {
  opacity: 1;
}

.clear-input-btn .material-icons-outlined {
  font-size: calc(var(--body-font-size) * 1.25) !important;
  color: var(--text-color) !important;
}

.chat-input .icon-btn {
  width: 38px;
  height: 38px;
  align-self: flex-end;
  margin-bottom: 1px;
}

.chat-input .icon-btn .material-icons-outlined {
  font-size: calc(var(--body-font-size) * 1.375);
}

#charCountDisplayContainer {
  width: calc(100% - 40px);
  max-width: 800px;
  margin: 3px auto 0 auto;
  text-align: right;
  padding-right: 20px;
  box-sizing: border-box;
  font-size: calc(var(--body-font-size) * 0.70);
  color: var(--text-color);
  opacity: 0.6;
  z-index: 101;
}

#charCountDisplay {
  background: rgba(var(--bg-secondary), 0.9);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-weight: 500;
}

/* Suggestion Cards */
.suggestions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.suggestion-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  font-size: 0.95em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.suggestion-card:hover {
  background: var(--prompt-hover-bg);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.suggestion-card:first-child {
  background: linear-gradient(135deg, var(--bg-secondary), rgba(var(--accent-color-rgb), 0.1));
  border-color: var(--accent-color);
}

.suggestion-card:first-child .material-icons-outlined {
  color: #ffd700;
}

.suggestion-card .material-icons-outlined {
  color: var(--accent-color);
  font-size: 20px;
}

/* Toast Notifications */
#toastContainer {
  position: fixed !important;
  top: 80px !important;
  right: 20px !important;
  z-index: 10002 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
}

.toast-notification {
  background: var(--bg-secondary);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  max-width: 300px;
  word-wrap: break-word;
  pointer-events: auto;
  position: relative;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-notification.success {
  border-left: 4px solid #4caf50;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(76, 175, 80, 0.1));
  padding-left: 35px;
}

.toast-notification.success:before {
  content: '✅';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.toast-notification.error {
  border-left: 4px solid #f44336;
  background: linear-gradient(135deg, var(--bg-secondary), rgba(244, 67, 54, 0.1));
  padding-left: 35px;
}

.toast-notification.error:before {
  content: '❌';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.toast-notification.info {
  border-left: 4px solid var(--accent-color);
  background: linear-gradient(135deg, var(--bg-secondary), rgba(var(--accent-color-rgb), 0.1));
  padding-left: 35px;
}

.toast-notification.info:before {
  content: 'ℹ️';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.toast-notification.pdf-process {
  background-color: var(--accent-color-blue);
  color: white;
}

/* Scroll Button */
#scrollToBottomBtn {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.8));
  border: none;
  box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.4);
  color: var(--chat-user-text);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s, background-color 0.3s, color 0.3s;
  z-index: 100;
}

#scrollToBottomBtn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.6);
}

#scrollToBottomBtn .material-icons-outlined {
  font-size: 20px;
  color: inherit !important;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--modal-overlay-bg);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
  opacity: 1;
  backdrop-filter: blur(10px);
}

.modal-content {
  background-color: var(--modal-bg);
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  width: 90%;
  max-width: 500px; /* Varsayılan modal genişliği */
  position: relative;
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s, color 0.3s;
  color: var(--modal-text);
  max-height: 85vh;
  overflow-y: auto;
  opacity: 0;
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-content h2 {
  margin-top: 0;
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 25px;
  transition: color 0.3s;
}

.close-button {
  color: var(--text-color);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 5px;
  line-height: 1;
}

.close-button:hover, .close-button:focus {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* PRO Tune Modal */
.pro-tune-modal {
  max-width: 1000px !important; /* Daha geniş bir değer */
  width: 95% !important; 
}

.pro-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Daha geniş kartlar için */
  gap: 15px;
  margin-top: 20px;
}

.pro-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: var(--text-color);
  height: 140px;
  position: relative;
  overflow: hidden;
}

.pro-tool-card:hover {
  border-color: var(--accent-color);
  background: var(--prompt-hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
}

.pro-tool-card .material-icons-outlined {
  font-size: 3em;
  margin-bottom: 10px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.pro-tool-card:hover .material-icons-outlined {
  transform: scale(1.1);
}

.pro-tool-card .tool-name {
  font-weight: 600;
  font-size: 1em;
  margin-bottom: 5px;
  color: var(--text-color);
}

.pro-tool-card small {
  font-size: 0.8em;
  opacity: 0.7;
  line-height: 1.2;
  color: var(--text-color);
}

.voice-tool {
  background: linear-gradient(135deg, var(--input-bg), rgba(var(--accent-color-rgb), 0.1)) !important;
  border-color: rgba(var(--accent-color-rgb), 0.3) !important;
}

.voice-tool:hover {
  background: linear-gradient(135deg, var(--prompt-hover-bg), rgba(var(--accent-color-rgb), 0.2)) !important;
}

/* PRO Settings Modal */
.pro-settings-modal {
  max-width: 900px !important;
  width: 95% !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.pro-dashboard {
  background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.1), rgba(var(--accent-color-rgb), 0.05));
  border: 2px solid rgba(var(--accent-color-rgb), 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
}

.pro-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.pro-stat-card {
  background: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.pro-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.2);
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.85em;
  color: var(--text-color);
  opacity: 0.8;
}

.pro-save-btn {
  background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
  color: #000 !important;
  font-weight: bold !important;
  font-size: 1.1em !important;
  padding: 15px 25px !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  width: 100% !important;
}

.pro-save-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6) !important;
}

/* Platform Selector Modal */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  margin: 0;
  color: var(--accent-color);
}

.platform-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.platform-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  position: relative;
}

.platform-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.3);
}

.platform-card.active {
  border-color: var(--accent-color);
  background: rgba(var(--accent-color-rgb), 0.1);
}

.platform-card.pro-active {
  background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.15), rgba(255, 215, 0, 0.1));
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.3);
}

/* Platform ikon boyutu ve hizalaması */
.platform-icon {
  font-size: 3em; /* Varsayılan büyük ikon boyutu */
  margin-right: 20px;
  width: 80px;
  text-align: center;
  display: flex; /* İkonu ortalamak için */
  align-items: center; /* Dikeyde ortala */
  justify-content: center; /* Yatayda ortala */
  flex-shrink: 0; /* Küçülmesini engelle */
}

/* Platform kartlarındaki Material Icons için özel boyutlandırma */
.platform-card .platform-icon .material-icons-outlined {
    font-size: 2.2em; /* Numex Müzik ve Numex Photo için daha uygun boyut (2.5em'den küçültüldü) */
    line-height: 1; /* Metnin üzerine binmesini engellemek için */
}

.platform-info {
  flex: 1;
}

.platform-info h3 {
  margin: 0 0 8px 0;
  color: var(--accent-color);
  font-size: 1.4em;
}

.platform-info p {
  margin: 0;
  color: var(--text-color);
  opacity: 0.8;
  font-size: 0.95em;
  line-height: 1.3; /* Metin bindirmesi için line-height ayarı */
}

.status-badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--chat-user-text);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
  margin-top: 8px;
}

/* Platform kartlarına özel renk vurguları */
.platform-card.numex-muzic {
    border-color: #a020f0; /* Mor tonu */
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.1), rgba(var(--accent-color-rgb), 0.05));
}

.platform-card.numex-muzic:hover {
    box-shadow: 0 5px 15px rgba(160, 32, 240, 0.3);
}

.platform-card.numex-photo {
    border-color: #ffd700; /* Altın sarısı tonu */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(var(--accent-color-rgb), 0.05));
}

.platform-card.numex-photo:hover {
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Özellik ikonları için stil */
.platform-info .feature-icons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    color: var(--text-color);
    opacity: 0.8;
}

.platform-info .feature-icons .material-icons-outlined {
    font-size: 1.2em; /* Daha küçük ikon boyutu */
    color: var(--accent-color); /* Vurgu rengiyle aynı */
}

/* Setting Items */
.setting-item, .add-prompt-section, .tune-modal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.setting-item:last-of-type, .tune-modal-item:last-of-type, .add-prompt-section:last-of-type {
  border-bottom: none;
}

.settings-category {
  margin-bottom: 25px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.settings-category:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.settings-category h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(var(--accent-color-rgb), 0.3);
}

.settings-category h3 .material-icons-outlined {
  font-size: 1.5em;
  color: var(--accent-color);
}

.setting-item label, .tune-modal-item label {
  font-size: 1em;
  flex-basis: 60%;
  margin-right: 10px;
}

.setting-item select, .setting-item input[type="checkbox"], .add-prompt-section input[type="text"] {
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s, color 0.3s;
  font-size: 0.9em;
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-left: auto;
}

.setting-item select {
  flex-grow: 1;
}

.setting-item select:focus, .setting-item input[type="checkbox"]:focus, .add-prompt-section input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5);
  outline: none;
}

/* Theme Options */
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top:10px;
}

.theme-option-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.theme-option-button.active {
  border: 3px solid var(--text-color);
  box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.7);
  transform: scale(1.1);
}

.theme-option-button:hover {
  opacity:0.8;
}

/* Image Lightbox */
#imageLightboxModal {
  display: none;
  position: fixed;
  z-index: 10001;
  padding-top: 70px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#imageLightboxModal.show {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 85%;
  transform: scale(0.7);
  transition: transform 0.3s ease-in-out;
}

#imageLightboxModal.show .lightbox-content {
  transform: scale(1);
}

.lightbox-close-button {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.lightbox-close-button:hover, .lightbox-close-button:focus {
  color: #bbb;
}

/* Voice Recording Animation */
.voice-recording {
  position: relative;
}

.voice-recording:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: voice-ring 1.5s infinite;
}

@keyframes voice-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Focus Indicators for Accessibility */
.pro-tool-card:focus,
.new-chat-btn:focus,
.pro-tune-btn:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* PRO Loading Animation */
.pro-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--accent-color-rgb), 0.3);
  border-radius: 50%;
  border-top: 2px solid var(--accent-color);
  animation: pro-spin 1s linear infinite;
  margin-right: 8px;
}

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

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes detailedPulseFixed {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 10px 15px rgba(var(--accent-color-rgb), 0.1); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0); }
}

@keyframes pulse {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.8; transform: scale(1); }
}

@keyframes logo-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.03); opacity: 0.9; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-center { display: none; }
  header.top-nav { height:60px; padding: 0 10px; }
  body {padding-top: 60px;}
  #sidebar {top:60px; height: calc(100% - 60px); width: 260px;}
  #imageLightboxModal {padding-top: 60px;}
  .chat-input-wrapper { padding-bottom: 5px; }
  .chat-input { width: calc(100% - 20px); padding: 8px 10px; gap: 5px;}
  #charCountDisplayContainer { width: calc(100% - 20px); }
  .chat-input .icon-btn {width:36px; height:36px;}
  .chat-input .icon-btn .material-icons-outlined {font-size:20px;}
  .chat-message { max-width: 90%; font-size: calc(var(--body-font-size) * 0.9);}
  .modal-content { width: 95%; padding: 20px; max-height: 90vh; }
  .toast-notification.show { width: calc(100% - 40px); box-sizing: border-box; }
  .chat-message.ai { padding-bottom: 45px; }
  .chat-message.ai .ai-message-actions { gap: 3px; }
  .chat-message.ai .ai-message-actions .icon-btn { width: 26px; height: 26px; }
  .chat-message.ai .ai-message-actions .icon-btn .material-icons-outlined { font-size: calc(var(--body-font-size) * 1.0); }

  /* Sidebar mobile */
  .sidebar-section { padding: 15px 12px; }
  .sidebar-section h3 { font-size: 0.85em; }
  .sidebar-user-profile { padding: 12px; }
  .sidebar-user-avatar { width: 40px; height: 40px; }
  .sidebar-user-name { font-size: 0.9em; }
  .sidebar-user-plan { font-size: 0.7em; }
  .sidebar-tools li, .sidebar-platforms li, .sidebar-support li, .sidebar-user-menu li { padding: 10px 12px; font-size: 0.9em; }
  .sidebar-model-btn { padding: 10px 12px; font-size: 0.9em; }
  .model-option { padding: 8px 12px; font-size: 0.85em; }
  .sidebar-settings-btn { padding: 12px; font-size: 0.9em; }

  /* PRO Tools mobile */
  .pro-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pro-tool-card {
    height: 120px;
    padding: 15px;
  }

  .pro-tool-card .material-icons-outlined {
    font-size: 2.5em;
  }

  .pro-tool-card .tool-name {
    font-size: 0.9em;
  }

  .pro-tool-card small {
    font-size: 0.75em;
  }

  .pro-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pro-stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 1.5em;
  }

  #toastContainer {
    top: 70px;
    right: 10px;
    left: 10px;
  }

  .toast-notification {
    max-width: none;
  }

  .suggestions-container {
    gap: 10px;
    padding: 15px;
  }
  .suggestion-card {
    padding: 12px 15px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .nav-left button, .nav-right button { width: 36px; height: 36px; padding: 6px; }
  .nav-left .material-icons-outlined, .nav-right .material-icons-outlined { font-size: 20px; }
  .chat-input textarea { font-size: calc(var(--body-font-size) * 0.9); padding: 8px 12px; min-height: 18px; }

  .pro-tools-grid {
    grid-template-columns: 1fr;
  }

  .pro-tool-card {
    flex-direction: row;
    height: auto;
    padding: 12px 15px;
    text-align: left;
  }

  .pro-tool-card .material-icons-outlined {
    font-size: 2em;
    margin-bottom: 0;
    margin-right: 10px;
  }

  .pro-tool-card .tool-name {
    margin-bottom: 2px;
  }

  .pro-tool-card small {
    display: none;
  }

  .new-chat-btn span {
    font-size: 18px;
  }

  .nav-center h1 {
    font-size: 1.2em;
  }

  .nav-center p {
    font-size: 0.7em;
  }
}

/* Light Mode Adjustments */
body.light-mode .pro-tool-card {
  background: #f8f9fa;
  border-color: #e9ecef;
}

body.light-mode .pro-tool-card:hover {
  background: #e9ecef;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

body.light-mode .toast-notification {
  background: #ffffff;
  border-color: #dee2e6;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body.light-mode .pro-dashboard {
  background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.05), rgba(var(--accent-color-rgb), 0.02));
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .voice-pulse,
  .pro-glow,
  .voice-ring {
    animation: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .pro-tool-card {
    border-width: 3px;
  }

  .toast-notification {
    border-width: 2px;
  }

  .pro-stat-card {
    border-width: 2px;
  }
}

/* Additional PRO Styles */
.prompt-list-container {
  border-bottom: none;
  margin-bottom: 15px;
}

.prompt-list-container {
  margin-top: 10px;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 10px;
}

#promptList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#promptList li {
  background-color: var(--prompt-bg);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
  word-break: break-word;
}

#promptList li:hover {
  background-color: var(--prompt-hover-bg);
}

#promptList li .prompt-text {
  flex-grow: 1;
  cursor: pointer;
  font-size: 0.95em;
  line-height: 1.3;
  margin-right: 10px;
}

#promptList li .delete-prompt-btn {
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  padding: 5px;
  min-width: unset;
  margin-left: auto;
  box-shadow: none;
  opacity: 0.7;
  line-height: 1;
}

#promptList li .delete-prompt-btn:hover {
  opacity: 1;
  background: rgba(255, 0, 0, 0.1);
}

#promptList li .delete-prompt-btn .material-icons-outlined {
  font-size: 20px;
  color: var(--text-color);
}

.add-prompt-section {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
  flex-direction: column;
  gap: 10px;
}

.add-prompt-section input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}

.add-prompt-section button {
  width: 100%;
  margin-top: 0;
}

.modal-content button#saveSettingsButton, .modal-content button#saveTuneSettingsButton {
  background-color: var(--accent-color);
  color: var(--chat-user-text);
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.2s ease, transform 0.1s ease, color 0.3s;
}

.modal-content button#saveSettingsButton:hover, .modal-content button#saveTuneSettingsButton:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.example-prompts-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.example-prompts-list li {
  background-color: var(--prompt-bg);
  padding: 12px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.example-prompts-list li:hover {
  background-color: var(--prompt-hover-bg);
  transform: translateX(3px);
}

.example-prompts-list li .material-icons-outlined {
  color: var(--accent-color);
  font-size: 20px;
}

.info-modal .modal-content {
  text-align: left;
}

.info-modal .modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
}

.info-modal .modal-content div[id$="Content"] {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-color);
}

.info-modal .modal-content div[id$="Content"] p {
  margin-bottom: 1em;
}

.info-modal .modal-content div[id$="Content"] h3 {
  color: var(--accent-color);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3em;
}

.info-modal .modal-content div[id$="Content"] ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 1em;
}

.info-modal .modal-content div[id$="Content"] strong {
  font-weight: bold;
  color: var(--accent-color);
}

.settings-info-button {
  display: flex;
  width: 100%;
  padding: 10px 15px;
  margin: 8px 0;
  background-color: var(--input-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
}

.settings-info-button .material-icons-outlined {
  color: var(--accent-color);
  font-size: 20px;
}

.settings-info-button:hover {
  background-color: var(--prompt-hover-bg);
  border-color: var(--accent-color);
}

/* Speech Tone Lights (Dikte animasyonu) */
.speech-tone-lights-container {
  position: fixed;
  bottom: 100px; /* Chat input'un hemen üstünde */
  left: 50%;
  transform: translateX(-50%);
  display: none; /* Varsayılan olarak gizli */
  gap: 3px; /* Barlar arası boşluk */
  padding: 5px;
  z-index: 100;
  pointer-events: none;
  height: 25px; /* Konteynerin yüksekliği */
  align-items: flex-end; /* Barlar alttan yükselsin */
}

.speech-tone-lights-container .light-bar {
  width: 6px; /* Bar genişliği */
  min-height: 2px; /* Minimum yükseklik */
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: height 0.05s ease-out, background-color 0.08s ease-out, opacity 0.08s ease-out;
  opacity: 0.7;
}

/* Reduce animations mode */
body.reduce-animations #speechToneLightsContainer {
  display: none !important;
}

body.reduce-animations .modal.show {
  transition: none !important;
}

body.reduce-animations .modal.show .modal-content {
  transition: none !important;
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

body.reduce-animations #sidebar.open {
  transform: translateX(0) !important;
}

body.reduce-animations .logo-pulse,
body.reduce-animations #earthIcon.animated-globe,
body.reduce-animations #earthIcon.pulse-default,
body.reduce-animations .loading-dots span {
  animation: none !important;
}

/* Earth Animation (Sesli konuşma animasyonu) */
#earthAnimationContainer {
  display: none; /* Varsayılan olarak gizli */
  position: fixed;
  bottom: 180px; /* Input'un üzerinde, rahat görülecek bir konum */
  left: 50%;
  transform: translateX(-50%);
  z-index: 100; 
  display: flex; 
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none; 
}

#earthAnimationContainer.show {
  opacity: 1;
  display: flex; /* Gözükür olduğunda flex olsun */
  pointer-events: auto; 
}

#earthIcon {
  font-size: 80px; /* İkon boyutu */
  color: var(--accent-color);
  opacity: 0.9;
  position: relative; 
  animation: spin 10s linear infinite, pulse-scale 2s infinite alternate; /* Hem dönme hem nabız */
}

@keyframes pulse-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Voice Meter for Earth Animation */
#earthVoiceMeter {
    display: flex;
    gap: 2px;
    margin-top: 10px;
    height: 20px; /* Barların yüksekliği */
    align-items: flex-end; /* Barlar alttan yükselsin */
    width: 80px; /* Dünya ikonunun genişliğine yakın */
    justify-content: center;
}

.earth-bar {
    width: 6px; /* Barların genişliği */
    background-color: var(--accent-color);
    border-radius: 2px;
    transition: height 0.1s ease-out, background-color 0.1s ease-out;
    opacity: 0.7;
    min-height: 2px; /* Minimum yükseklik */
}


/* Additional utility classes */
.message-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.75em;
  opacity: 0.8;
  margin-top: 5px;
  gap: 8px;
}

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

.message-footer .action-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.message-footer .action-icons .material-icons-outlined {
  font-size: 1.1em;
  cursor: pointer;
  color: white;
  padding: 3px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.message-footer .action-icons .material-icons-outlined:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Quick access menu styles */
.quick-access-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding: 4px 8px;
  background: rgba(var(--accent-color-rgb), 0.05);
  border-radius: 20px;
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

.quick-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.quick-btn:hover {
  background: rgba(var(--accent-color-rgb), 0.15);
  transform: scale(1.05);
}

.quick-btn.active {
  background: var(--accent-color);
  color: white;
}

.quick-btn.active .material-icons-outlined {
  color: white !important;
}

.quick-btn .material-icons-outlined {
  font-size: 18px;
  color: var(--accent-color);
  transition: color 0.2s ease;
}

/* Test voice button */
.test-voice-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.8));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.test-voice-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.4);
}

.test-voice-btn .material-icons-outlined {
  color: white !important;
}

/* Quick tools grid */
.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.quick-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: var(--text-color);
  height: 120px;
  position: relative;
  overflow: hidden;
}

.quick-tool-card:hover {
  border-color: var(--accent-color);
  background: var(--prompt-hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.3);
}

.quick-tool-card .material-icons-outlined {
  font-size: 2.5em;
  margin-bottom: 8px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.quick-tool-card:hover .material-icons-outlined {
  transform: scale(1.1);
}

.quick-tool-card .tool-name {
  font-weight: 600;
  font-size: 0.95em;
  margin-bottom: 4px;
  color: var(--text-color);
}

.quick-tool-card small {
  font-size: 0.75em;
  opacity: 0.7;
  line-height: 1.2;
}

.quick-tool-card.voice-tool {
  background: linear-gradient(135deg, var(--input-bg), rgba(var(--accent-color-rgb), 0.1));
}

.quick-tool-card.voice-tool:hover {
  background: linear-gradient(135deg, var(--prompt-hover-bg), rgba(var(--accent-color-rgb), 0.2));
}

/* PRO button enhancements */
.pro-btn {
  background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.8)) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(var(--accent-color-rgb), 0.3) !important;
}

.pro-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.4) !important;
}

/* Final responsive adjustments */
@media (max-width: 320px) {
  .nav-center h1 {
    font-size: 1em;
  }

  .nav-center p {
    font-size: 0.6em;
  }

  .chat-input {
    padding: 6px 8px;
    gap: 4px;
  }

  .chat-input .icon-btn {
    width: 32px;
    height: 32px;
  }

  .sidebar-section {
    padding: 12px 8px;
  }

  .pro-tool-card {
    padding: 8px 10px;
  }
}

/* Print styles */
@media print {
  header.top-nav,
  #sidebar,
  .chat-input-wrapper,
  #scrollToBottomBtn,
  .modal,
  #toastContainer {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: white;
    color: black;
  }

  .chat-container {
    padding: 20px;
  }

  .chat-message {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* END OF CSS */
/* ===================================================================================
   NUMEX AI PRO - AUTHENTICATION MODAL STYLES (main.css'e eklenecek)
   =================================================================================== */

/* Authentication Modal Base Styles */
#numexLoginModal .modal-content {
    max-width: 450px !important;
    width: 90% !important;
    background: var(--bg-secondary);
    border: 2px solid rgba(var(--accent-color-rgb), 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

#numexLoginModal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #6f42c1, var(--accent-color));
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

#numexLoginModal h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--accent-color);
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Form Styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95em;
    margin-bottom: 5px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 1em;
    font-family: var(--body-font-family);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.1);
    background: var(--bg-primary);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-group input:valid {
    border-color: #28a745;
}

/* Password Input with Toggle */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    opacity: 1;
    background: rgba(var(--accent-color-rgb), 0.1);
}

.toggle-password .material-icons-outlined {
    font-size: 20px;
}

/* Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.95em;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

/* Submit Button */
.auth-submit-btn {
    background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.8));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-color-rgb), 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-submit-btn .material-icons-outlined {
    color: white !important;
}

/* Loading Animation */
.pro-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: pro-spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Auth Links */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
    padding: 5px 8px;
    border-radius: 6px;
}

.auth-links a:hover {
    color: rgba(var(--accent-color-rgb), 0.8);
    background: rgba(var(--accent-color-rgb), 0.1);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
    color: var(--text-color);
    opacity: 0.7;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: var(--bg-secondary);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    font-size: 0.9em;
}

/* Social Login Buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--accent-color);
    background: var(--input-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.05);
}

.github-btn:hover {
    border-color: #333;
    background: rgba(51, 51, 51, 0.05);
}

.social-icon {
    font-size: 1.3em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Security Info */
.security-info {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: rgba(var(--accent-color-rgb), 0.05);
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
    border-radius: 10px;
}

.security-info small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.85em;
}

.security-info .material-icons-outlined {
    font-size: 16px;
    color: var(--accent-color);
}

/* Error States */
.form-group.error input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-group.error label {
    color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message .material-icons-outlined {
    font-size: 16px;
}

/* Success States */
.form-group.success input {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.success-message {
    color: #28a745;
    font-size: 0.85em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.success-message .material-icons-outlined {
    font-size: 16px;
}

/* Rate Limit Warning */
.rate-limit-warning {
    margin: 15px 0;
    padding: 12px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    color: #721c24;
    text-align: center;
    font-size: 0.9em;
}

.rate-limit-timer {
    font-weight: bold;
    color: #dc3545;
}

/* Enhanced Security Indicators */
.security-status-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(var(--bg-secondary), 0.95);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.security-status-indicator.secure {
    border-color: #28a745;
    color: #28a745;
}

.security-status-indicator.warning {
    border-color: #ffc107;
    color: #ffc107;
}

.security-status-indicator.danger {
    border-color: #dc3545;
    color: #dc3545;
}

/* Network Status Indicator */
.network-status {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.8em;
    display: none;
    align-items: center;
    gap: 6px;
    z-index: 100;
}

.network-status.offline {
    border-color: #dc3545;
    color: #dc3545;
}

.network-status.online {
    border-color: #28a745;
    color: #28a745;
}

/* Enhanced Login Button */
#sidebarLoginBtn {
    background: linear-gradient(135deg, var(--accent-color), rgba(var(--accent-color-rgb), 0.8));
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#sidebarLoginBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#sidebarLoginBtn:hover::before {
    left: 100%;
}

#sidebarLoginBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-color-rgb), 0.4);
}

/* Session Status */
.session-status {
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-status.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.session-status.inactive {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Enhanced User Profile Display */
.sidebar-user-profile {
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-user-profile::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), #6f42c1, var(--accent-color));
    background-size: 200% 200%;
    border-radius: 14px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0.7;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Security Badge */
.security-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #28a745;
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.security-badge.mfa-enabled {
    background: #007bff;
}

.security-badge.premium {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
}

/* MFA Indicator */
.mfa-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
}

.mfa-indicator.enabled {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Device Trust Status */
.device-trust-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    margin-top: 5px;
}

.device-trust-status.trusted {
    color: #28a745;
}

.device-trust-status.new {
    color: #ffc107;
}

.device-trust-status.suspicious {
    color: #dc3545;
}

/* Session Timer Display */
.session-timer {
    font-size: 0.75em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 3px;
}

.session-timer.warning {
    color: #ffc107;
    opacity: 1;
}

.session-timer.danger {
    color: #dc3545;
    opacity: 1;
    animation: pulse 2s infinite;
}

/* Enhanced Modal Backdrop */
.modal.auth-modal {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.75);
}

/* Professional Loading States */
.auth-loading {
    position: relative;
    overflow: hidden;
}

.auth-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-color-rgb), 0.2), transparent);
    animation: loading-sweep 1.5s infinite;
}

@keyframes loading-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Security Alerts */
.security-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border: 2px solid #dc3545;
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    z-index: 10002;
    display: none;
    text-align: center;
}

.security-alert.show {
    display: block;
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* PRO Feature States */
.pro-feature-locked {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.pro-feature-locked::after {
    content: '🔒';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8em;
}

.pro-feature-unlocked::after {
    content: '✨';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8em;
}

/* Animation for Modal Entrance */
#numexLoginModal.show .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Focus Management for Accessibility */
.form-group input:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.auth-submit-btn:focus-visible,
.social-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.toggle-password:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #numexLoginModal .modal-content {
        max-width: 95% !important;
        margin: 20px auto;
        padding: 25px 20px;
    }
    
    .social-login {
        gap: 10px;
    }
    
    .auth-links {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .security-status-indicator {
        top: 70px;
        right: 10px;
        font-size: 0.8em;
        padding: 6px 10px;
    }

    .network-status {
        bottom: 100px;
        right: 10px;
        font-size: 0.75em;
        padding: 6px 12px;
    }

    .security-alert {
        max-width: 90%;
        margin: 0 5%;
    }
}

@media (max-width: 480px) {
    #numexLoginModal .modal-content {
        padding: 20px 15px;
    }
    
    #numexLoginModal h2 {
        font-size: 1.5em;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .auth-submit-btn {
        padding: 14px 20px;
        font-size: 1em;
    }
    
    .social-btn {
        padding: 12px 16px;
        font-size: 0.95em;
    }
}

/* Dark/Light Mode Adjustments */
body.light-mode #numexLoginModal .modal-content {
    background: #ffffff;
    border-color: rgba(var(--accent-color-rgb), 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

body.light-mode .form-group input {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

body.light-mode .form-group input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.1);
}

body.light-mode .social-btn {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

body.light-mode .social-btn:hover {
    background: #e9ecef;
}

body.light-mode .security-info {
    background: rgba(var(--accent-color-rgb), 0.05);
    border-color: rgba(var(--accent-color-rgb), 0.15);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .form-group input {
        border-width: 3px;
    }
    
    .auth-submit-btn {
        border: 2px solid white;
    }
    
    .social-btn {
        border-width: 3px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .auth-submit-btn,
    .social-btn,
    .toggle-password,
    .form-group input {
        transition: none;
    }
    
    .shimmer::before {
        animation: none;
    }
    
    .pro-loading {
        animation: none;
        border-color: var(--accent-color);
        border-top-color: transparent;
    }
    
    .gradientShift {
        animation: none !important;
    }
    
    .modalSlideIn {
        animation: none !important;
    }
}

/* Additional Professional Enhancements */
.validation-message {
    margin-top: 5px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-message .material-icons-outlined {
    font-size: 16px;
}

/* Strength Meter for Password */
.strength-meter {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-weak { 
    width: 25%; 
    background: #dc3545; 
}

.strength-fair { 
    width: 50%; 
    background: #ffc107; 
}

.strength-good { 
    width: 75%; 
    background: #fd7e14; 
}

.strength-strong { 
    width: 100%; 
    background: #28a745; 
}

/* Loading States for Forms */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bg-secondary), 0.8);
    border-radius: 12px;
    z-index: 10;
}

.spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.spinner-overlay .pro-loading {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.spinner-text {
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 20px;
    padding: 12px;
    background: rgba(var(--accent-color-rgb), 0.05);
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.85em;
    line-height: 1.4;
}

.privacy-notice a {
    color: var(--accent-color);
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Toast Notification Enhancements for Auth */
.toast-notification.auth-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(40, 167, 69, 0.1));
}

.toast-notification.auth-error {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(220, 53, 69, 0.1));
}

.toast-notification.auth-warning {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 193, 7, 0.1));
}

/* Auth Modal Animation States */
.auth-modal.entering {
    animation: authModalEnter 0.3s ease-out;
}

.auth-modal.leaving {
    animation: authModalLeave 0.3s ease-in;
}

@keyframes authModalEnter {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes authModalLeave {
    from {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

/* Hover Effects for Interactive Elements */
.auth-interactive {
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-interactive:hover {
    transform: translateY(-1px);
}

.auth-interactive:active {
    transform: translateY(0);
}

/* Security Level Indicators */
.security-level-low {
    color: #dc3545;
}

.security-level-medium {
    color: #ffc107;
}

.security-level-high {
    color: #28a745;
}

.security-level-premium {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Custom Scrollbar for Auth Modal */
#numexLoginModal .modal-content::-webkit-scrollbar {
    width: 6px;
}

#numexLoginModal .modal-content::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

#numexLoginModal .modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

#numexLoginModal .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-color-rgb), 0.8);
}

/* End of Authentication Styles */