/* Rich Text Editor Theme Styles - Colors and visual styling */

/* Toolbar Container */
.format-toolbar {
    background-color: #333;
    border: 1px solid #444;
}

/* Toolbar Section */
.toolbar-section {
    background-color: #222;
}

/* Format Button */
.format-button {
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    margin-right: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.format-button:hover {
    background-color: #555;
}

/* Format Select Dropdown */
.format-select {
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
}

.format-select:hover {
    background-color: #555;
}

.format-select option {
    background-color: #333;
    color: #fff;
}

/* Number Input (Font Size) */
.format-input {
    background-color: #444;
    color: #fff;
}

.format-input:focus {
    outline: 1px solid #66ccff;
}

/* Label for color inputs */
.toolbar-section label {
    color: #ccc;
}

/* Typing Area */
.typing-area {
    border: 1px solid #444;
    background-color: rgba(26, 26, 26, 0.9);
}

/* Typing Input Area */
.typing-input {
    background-color: rgba(26, 26, 26, 0.9);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.typing-input:empty:before {
    content: attr(placeholder);
    color: #666;
    font-style: italic;
}

/* WSV Controls Theme */
.wsv-label {
    color: #ccc;
}

.wsv-checkbox {
    width: 16px;
    height: 16px;
    background-color: #333;
    border: 1px solid #555;
}

.help-icon {
    background-color: #444;
    color: #fff;
    font-size: 14px;
}

.help-icon:hover {
    background-color: #555;
}

/* Tooltip styles */
.tooltip {
    background-color: #222;
    border: 1px solid #444;
    color: #ddd;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
}

.tooltip h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #66ccff;
    font-size: 16px;
    text-align: center;
}

.tooltip h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffcc66;
    font-size: 14px;
}

.tooltip p {
    margin: 5px 0;
    font-size: 12px;
}

.tooltip-section {
    background-color: #1a1a1a;
}

kbd {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    color: #fff;
    display: inline-block;
    font-size: 11px;
    line-height: 1.4;
    margin: 0 2px;
    padding: 1px 4px;
}

/* Remove all styling for unsaved changes indicator to hide it completely */
.typing-area.unsaved {
    border: 1px solid #333 !important;
}

.typing-area.unsaved::after {
    content: none !important;
    display: none !important;
}

/* Make sure form elements have white text */
button, select, input, option {
    color: #fff;
}

/* Additional specific button styling */
button[data-align="left"], 
button[data-align="center"], 
button[data-align="right"] {
    background-color: #444;
    color: white;
    border: none;
}

button[data-command="bold"], 
button[data-command="italic"], 
button[data-command="underline"] {
    background-color: #444;
    color: white;
    font-weight: bold;
}

/* Fix select elements appearance */
select.format-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    padding-right: 25px;
}

/* WSV mode checkbox styling */
input[type="checkbox"]#wsvToggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #555;
    border-radius: 3px;
    background-color: #333;
    position: relative;
    cursor: pointer;
    margin-right: 5px;
}

input[type="checkbox"]#wsvToggle:checked {
    background-color: #66ccff;
}

input[type="checkbox"]#wsvToggle:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Question mark styling */
#wsvHelp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}


  
  /* Exported content styles */
  .editor-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  /* Export button styles */
  #export-format {
    background-color: #3a3a3a;
  }
  
  #export-format:hover {
    background-color: #4a4a4a;
  }

 /* Focus mode styles */
body.focus-mode {
  background-color: #000; /* Darker background in focus mode */
}

/* Adjust the entire typing area container in focus mode */
.typing-area {
  transition: all 0.3s ease-in-out;
}

body.focus-mode .typing-area {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 50px);
  z-index: 100;
  margin: 0;
}

.typing-input.focus-mode {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  font-size: 20px !important;
  background-color: #0a0a0a !important;
  border: none !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  padding: 30px !important;
  overflow-y: auto;
}

/* Exported content styles */
.editor-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Export button styles */
#export-format {
  background-color: #3a3a3a;
}

#export-format:hover {
  background-color: #4a4a4a;
}

/* Focus Toggle button styles - Simplified */
#focusToggle {
    background-color: #444;
    transition: background-color 0.3s, color 0.3s;
    color: #fff;
    font-weight: bold;
  }
  
  #focusToggle:hover {
    background-color: #555;
  }
  
  #focusToggle.active-focus {
    background-color: #66ccff;
    color: #111;
  }

/* Spell check toggle styles */
#spellcheckToggle {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #555;
  border-radius: 3px;
  background-color: #333;
  position: relative;
  cursor: pointer;
  margin-right: 5px;
}

#spellcheckToggle:checked {
  background-color: #66ccff;
}

#spellcheckToggle:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* WSV and SpellCheck labels */
.wsv-label {
  margin: 0;
  padding: 0;
}

