/*
 * Web1CAD System Styles
 * Version 0.250801 (August 1, 2025)
 * Developed by Oleh Korobkov
 * © 2025 Oleh Korobkov. All rights reserved.
 * If you see this code elsewhere, it was copied.
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

/* Main Container */
.cad-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #000;
}

/* Top Toolbar */
.top-toolbar {
    position: relative;
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    display: flex;
    align-items: center;
    padding: 4px 12px;
    border-bottom: 2px solid #444;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    height: 36px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
}

/* Disable wheel scrolling on toolbar */
.top-toolbar {
    overscroll-behavior-x: none;
}

/* Hide scrollbars for top toolbar */
.top-toolbar::-webkit-scrollbar {
    display: none;
}

.top-toolbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Toolbar Separator */
.toolbar-separator {
    width: 1px;
    height: 20px;
    background: #666;
    margin: 0 4px;
}

.toolbar-button {
    background: linear-gradient(180deg, #444 0%, #333 100%);
    color: #fff !important;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    min-width: 32px;
    height: 28px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    font-family: monospace;
}

.toolbar-button:hover {
    background: linear-gradient(180deg, #555 0%, #444 100%);
    border-color: #777;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toolbar-button.active {
    background: linear-gradient(180deg, #666 0%, #555 100%);
    border-color: #888;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: none;
}

.toolbar-button:disabled {
    background: #2a2a2a;
    color: #555;
    border-color: #444;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.toolbar-button:disabled:hover {
    background: #2a2a2a;
    border-color: #444;
    transform: none;
    box-shadow: none;
}

.toolbar-separator {
    width: 1px;
    height: 30px;
    background: #555;
    margin: 0 5px;
    flex-shrink: 0;
}

/* Toolbar Select */
.toolbar-select {
    background: linear-gradient(180deg, #444 0%, #333 100%);
    color: #fff;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 12px;
    height: 28px;
    min-width: 80px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toolbar-select:hover {
    background: linear-gradient(180deg, #555 0%, #444 100%);
    border-color: #777;
}

.toolbar-select:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Color Picker */
input[type="color"] {
    background: #333;
    border: 1px solid #555;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

input[type="color"]:hover {
    border-color: #777;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Drawing Area */
.drawing-area {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
}

#cadCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: crosshair;
}

/* Right Toolbar */
.right-toolbar {
    position: absolute;
    right: 5px;
    top: 5px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}

.right-toolbar .toolbar-button {
    width: 30px;
    height: 30px;
    padding: 3px;
    font-size: 12px;
}

/* Bottom Toolbar */
.bottom-toolbar {
    background: #222;
    border-top: 1px solid #444;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 36px;
}

/* Right Toolbar */

/* Help Bar */
.help-bar {
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    min-width: 150px;
    text-align: left;
}

/* Command Section */
.command-section {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: flex-start;
    max-width: none;
}

/* Command prompt symbol */
.command-prompt {
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    margin-right: 5px;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

#commandInput {
    background: #000;
    color: #0f0;
    border: 1px solid #444;
    padding: 3px 5px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    flex: 1;
    max-width: 500px;
}

#commandInput:focus {
    outline: none;
    border-color: #666;
}

.command-toggle {
    background: rgba(51, 51, 51, 0.8);
    color: #fff;
    border: 1px solid rgba(85, 85, 85, 0.6);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 10px;
    border-radius: 3px;
    backdrop-filter: blur(3px);
    transition: background 0.2s ease;
}

.command-toggle:hover {
    background: rgba(68, 68, 68, 0.9);
}

.coords-display {
    background: #333;
    padding: 3px 8px;
    font-size: 11px;
    border: 1px solid #444;
    font-family: 'Courier New', monospace;
    min-width: 210px;
    width: 210px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

/* Right Controls Section */
.right-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Bottom toolbar buttons */
.bottom-btn {
    width: 24px;
    height: 24px;
    padding: 2px;
    font-size: 11px;
    min-width: 24px;
}

/* Command History */
.command-history {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(34, 34, 34, 0.5);
    border-top: 1px solid rgba(68, 68, 68, 0.8);
    border-bottom: none;
    height: 100px;
    overflow-y: auto;
    display: none;
    z-index: 85;
    backdrop-filter: blur(5px);
}

.command-history-content {
    padding: 5px;
    height: 100%;
    overflow-y: auto;
}

.command-history.show {
    display: block;
}

.history-line {
    padding: 2px 5px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    border-bottom: 1px solid #333;
}

.history-line.command {
    color: #0f0;
}

.history-line.output {
    color: #fff;
}

.history-line.error {
    color: #f44;
}

/* Selection Window */
.selection-window {
    position: absolute;
    border: 1px dashed #fff;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 50;
}

/* Text Input Overlay */
.text-input-overlay {
    position: absolute;
    background: #333;
    border: 1px solid #555;
    padding: 10px;
    z-index: 200;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.text-input-overlay input {
    background: #000;
    color: #fff;
    border: 1px solid #555;
    padding: 5px;
    font-size: 12px;
    width: 200px;
    margin-bottom: 5px;
}

.text-input-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.text-input-buttons button {
    background: #444;
    color: #fff;
    border: 1px solid #666;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 11px;
}

.text-input-buttons button:hover {
    background: #555;
}

/* Length Input Overlay */
.length-input-overlay {
    position: absolute;
    background: #333;
    border: 1px solid #555;
    padding: 5px;
    z-index: 200;
    font-size: 12px;
}

.length-input-overlay input {
    background: #000;
    color: #fff;
    border: 1px solid #555;
    padding: 3px;
    font-size: 11px;
    width: 80px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toolbar-button {
        padding: 3px 5px;
        font-size: 12px;
        min-width: 25px;
    }
    
    .coords-display {
        font-size: 10px;
        padding: 2px 5px;
        min-width: 180px;
        width: 180px;
    }
    
    #commandInput {
        font-size: 11px;
    }
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding: 3px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.toolbar-group:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.toolbar-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #555;
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  color: #ffffff;
  height: 40px;
  min-width: 80px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toolbar-select:hover {
  border-color: #007acc;
  background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
  box-shadow: 0 2px 6px rgba(0, 122, 204, 0.3);
}

input[type="color"] {
  width: 40px;
  height: 40px;
  border: 2px solid #555;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="color"]:hover {
  border-color: #007acc;
  box-shadow: 0 2px 6px rgba(0, 122, 204, 0.3);
  transform: translateY(-1px);
}

.main-content {
  display: flex;
  height: calc(100vh - 120px);
}

.canvas-area {
  flex: 1;
  position: relative;
  background: #1e1e1e;
}

#cadCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-right {
  width: 70px;
  background: linear-gradient(180deg, #2a2a2a 0%, #252525 100%);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}

.sidebar-right button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s ease;
}

.sidebar-right button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 122, 204, 0.4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 122, 204, 0.2);
}

.sidebar-tool {
  background: transparent;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  flex-direction: column;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sidebar-tool::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 122, 204, 0.1) 0%, rgba(0, 122, 204, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-tool:hover::before {
  opacity: 1;
}

.sidebar-tool:hover,
.sidebar-tool:focus {
  background: rgba(0, 122, 204, 0.08);
  border-color: rgba(0, 122, 204, 0.3);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 122, 204, 0.15);
}

.sidebar-tool i {
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.sidebar-label {
  font-size: 0.65rem;
  text-align: center;
  color: inherit;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.bottom-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: #2c2c2c;
  border-top: 1px solid #444;
}

.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.toggle-buttons button {
  background: transparent;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 13px;
  transition: all 0.25s ease;
  font-weight: 400;
}

.toggle-buttons button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 122, 204, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.toggle-buttons button.active {
  background: rgba(0, 122, 204, 0.12);
  border-color: rgba(0, 122, 204, 0.4);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 122, 204, 0.2);
}

.command-bar {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.5rem;
}

.command-toggle {
  cursor: pointer;
  padding: 0 0.5rem;
  color: #ccc;
}

#commandInput {
  flex: 1;
  padding: 0.4rem;
  border-radius: 0.3rem;
  border: none;
  background: #2a2a2a;
  color: #fff;
}

.cursor-coords {
  font-size: 0.8rem;
  margin-left: auto;
  color: #ccc;
}

.command-history-popup {
  position: absolute;
  bottom: 60px;
  right: 12px;
  width: 400px;
  max-height: 300px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.command-history-content {
  padding: 8px 12px;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  overflow-y: auto;
  max-height: 292px;
}

.command-success {
  color: #4caf50;
  margin-bottom: 4px;
}

.command-error {
  color: #f44336;
  margin-bottom: 4px;
}

.selection-window {
  position: absolute;
  display: none;
  pointer-events: none;
  border: 1px solid;
}

.window-selection {
  background-color: rgba(76, 111, 255, 0.1);
  border-color: #4c6fff;
}

.crossing-selection {
  background-color: rgba(76, 111, 255, 0.05);
  border-color: #4c6fff;
  border-style: dashed;
}

/* Improve contrast for selection window */
.selection-window.window-selection {
  border: 2px solid #4c6fff;
  background: rgba(76, 111, 255, 0.1);
}
.selection-window.crossing-selection {
  border: 2px dashed #ffb347;
  background: rgba(255, 179, 71, 0.08);
}

.help-bar {
  position: absolute;
  bottom: 0px;
  left: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  pointer-events: none;
  z-index: 100;
  opacity: 0.95;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-block;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Move help bar up and stick to top of command history when active */
.help-bar.command-active {
  bottom: 100px;
}

.help-bar:empty {
  opacity: 0;
}

.length-input-overlay {
  position: absolute;
  display: none;
  z-index: 150;
  pointer-events: none;
}

.length-input-overlay input {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 122, 204, 0.4);
  border-radius: 4px;
  background: rgba(30, 30, 30, 0.9);
  color: #ffffff;
  font-size: 12px;
  font-family: 'Consolas', monospace;
  outline: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  text-align: center;
}

.length-input-overlay input:focus {
  border-color: rgba(0, 122, 204, 0.8);
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.length-input-overlay input::placeholder {
  color: #888;
  font-size: 11px;
}

.polygon-radius-type-selector {
  position: absolute;
  display: none;
  z-index: 150;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(0, 122, 204, 0.4);
  border-radius: 8px;
  padding: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  min-width: 180px;
}

.polygon-radius-type-header {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.polygon-radius-type-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.polygon-radius-type-btn {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.polygon-radius-type-btn:hover {
  background: rgba(0, 122, 204, 0.2);
  border-color: rgba(0, 122, 204, 0.4);
}

.polygon-radius-type-btn.active {
  background: rgba(0, 122, 204, 0.3);
  border-color: rgba(0, 122, 204, 0.6);
  color: #ffffff;
}

.text-input-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2a2a2a;
  padding: 1rem;
  border-radius: 0.5rem;
  display: none;
  z-index: 100;
}

.text-input-overlay input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.3rem;
  border: none;
  background: #1e1e1e;
  color: #fff;
}

.text-input-buttons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.text-input-buttons button {
  background: #383838;
  border: 1px solid #444;
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
}

.text-input-buttons button:hover {
  background: #454545;
}

.layer-manager-popup {
  display: none;
  position: absolute;
  right: 90px;
  top: 100px;
  background: #2c2c2c;
  color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  z-index: 200;
  width: 300px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.layer-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #444;
}

.layer-manager-header h3 {
  font-size: 14px;
  font-weight: normal;
}

.layer-manager-header button {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
}

.layer-manager-content {
  padding: 12px;
}

.layer-manager-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.layer-manager-controls button {
  background: #383838;
  border: 1px solid #555;
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

.layer-manager-controls button:hover {
  background: #454545;
}

.layer-table {
  width: 100%;
  border-collapse: collapse;
}

.layer-table th, .layer-table td {
  border-bottom: 1px solid #444;
  padding: 0.4rem;
  text-align: left;
}

.layer-table th {
  background: #333;
}

.layer-color-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.layer-color-preview {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #555;
}

.layer-visible-toggle, .layer-locked-toggle {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Dropdown Styles */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease-in-out;
}

.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu button {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-align: left;
  transition: background-color 0.2s ease;
}

.dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu button:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.dropdown-menu button:last-child {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Layer Manager Toggle Button - Minimal */
.layer-manager-toggle {
  min-width: 60px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  background: transparent !important;
  border: 1px solid #444 !important;
}

.layer-manager-toggle:hover {
  background: #333 !important;
  border-color: #666 !important;
}

.layer-icon {
  font-size: 12px;
  opacity: 0.7;
}

.layer-actions-col {
  width: 10%;
  text-align: center;
}

/* Minimal Layer Name Input */
.layer-name-input {
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  width: 100%;
  padding: 2px 0;
  font-family: inherit;
}

.layer-name-input:focus {
  background: transparent;
  outline: 1px solid #555;
  outline-offset: -1px;
}

.layer-name-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Minimal Color Swatch */
.layer-color-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid #444;
  border-radius: 1px;
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.1s ease;
}

.layer-color-swatch:hover {
  border-color: #666;
}

/* Minimal Icon Buttons */
.layer-icon-btn {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 1px;
  border-radius: 1px;
  transition: color 0.1s ease;
  opacity: 0.5;
  color: #666;
}

.layer-icon-btn:hover {
  opacity: 1;
  color: #999;
}

.layer-icon-btn.visible {
  opacity: 1;
  color: #ccc;
}

.layer-icon-btn.locked {
  opacity: 1;
  color: #ff9800;
}

/* Minimal Radio Button */
.layer-active-radio {
  appearance: none;
  width: 10px;
  height: 10px;
  border: 1px solid #555;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
  background: transparent;
}

.layer-active-radio:checked {
  border-color: #6b9bd1;
  background: #6b9bd1;
}

.layer-active-radio:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* Minimal Actions Button */
.layer-actions-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: #555;
  cursor: pointer;
  padding: 1px 2px;
  border-radius: 1px;
  transition: color 0.1s ease;
  opacity: 0.6;
}

.layer-actions-btn:hover {
  color: #999;
  opacity: 1;
}

/* Lineweight Controls */
.layer-lineweight-select {
  background: transparent;
  border: 1px solid #444;
  color: inherit;
  font-size: 10px;
  padding: 1px 2px;
  border-radius: 2px;
  font-family: inherit;
  width: 100%;
  max-width: 80px;
}

.layer-lineweight-select:focus {
  outline: 1px solid #555;
  outline-offset: -1px;
}

.layer-lineweight-select option {
  background: #222;
  color: #ccc;
}

/* Lineweight Toolbar Select */
#lineweightSelect {
  font-size: 10px;
  min-width: 70px;
  max-width: 80px;
}

/* Minimal Responsive Design */
@media (max-width: 768px) {
  .layer-table th:nth-child(3),
  .layer-table td:nth-child(3) {
    display: none; /* Hide lineweight column on mobile */
  }
  
  .layer-table th:nth-child(5),
  .layer-table td:nth-child(5) {
    display: none;
  }
  
  .layer-table th:nth-child(7),
  .layer-table td:nth-child(7) {
    display: none;
  }
  
  .layer-name-col {
    width: 50%;
  }
  
  .layer-manager-header h3 {
    font-size: 11px;
  }
}

/* ===== INTEGRATED COLOR PANEL ===== */
.color-panel-integrated {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    min-width: 120px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.color-panel-integrated:hover {
    border-color: #777;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.color-current {
    flex: 1;
    position: relative;
}

.color-select {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
    border: none;
    padding: 0 8px;
    font-size: 11px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-color 0.2s ease;
}

.color-select option {
    padding: 4px 8px;
    font-weight: bold;
}

.color-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.color-select:focus {
    background: rgba(64, 150, 255, 0.2);
}

.color-current::after {
    content: '▼';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #aaa;
    pointer-events: none;
    transition: color 0.2s ease;
}

.color-current:hover::after {
    color: #fff;
}

.color-palette-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-left: 1px solid #555;
    height: 100%;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.color-palette-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #4096ff;
}

.color-palette-btn:active {
    background: rgba(64, 150, 255, 0.3);
    transform: scale(0.95);
}

.palette-icon {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.color-palette-btn:hover .palette-icon {
    transform: scale(1.1);
}

/* ===== INTEGRATED LINEWEIGHT PANEL ===== */
.lineweight-panel-integrated {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    min-width: 100px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lineweight-panel-integrated:hover {
    border-color: #777;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.lineweight-current {
    flex: 1;
    position: relative;
}

.lineweight-select {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
    border: none;
    padding: 0 8px;
    font-size: 11px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-color 0.2s ease;
}

.lineweight-select option {
    background: #2a2a2a;
    color: #fff;
    padding: 4px 8px;
}

.lineweight-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lineweight-select:focus {
    background: rgba(64, 150, 255, 0.2);
}

.lineweight-current::after {
    content: '▼';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #aaa;
    pointer-events: none;
    transition: color 0.2s ease;
}

.lineweight-current:hover::after {
    color: #fff;
}

/* ===== LWT BUTTON STYLES ===== */
.lineweight-toggle-btn {
    background: linear-gradient(180deg, #444 0%, #333 100%);
    color: #fff !important;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    min-width: 36px;
    height: 28px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    font-family: monospace;
    margin-left: 5px;
}

.lineweight-toggle-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lineweight-toggle-btn:hover {
    background: linear-gradient(180deg, #555 0%, #444 100%);
    border-color: #777;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lineweight-toggle-btn.active {
    background: linear-gradient(180deg, #666 0%, #555 100%);
    border-color: #888;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: none;
}

.lwt-icon {
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lineweight-toggle-btn.active .lwt-icon::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

/* ===== INTEGRATED LINE TYPE PANEL ===== */
.linetype-panel-integrated {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    min-width: 120px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.linetype-panel-integrated:hover {
    border-color: #777;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.linetype-current {
    flex: 1;
    position: relative;
}

.linetype-select {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
    border: none;
    padding: 0 8px;
    font-size: 11px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-color 0.2s ease;
}

.linetype-select option {
    background: #2a2a2a;
    color: #fff;
    padding: 4px 8px;
}

.linetype-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.linetype-select:focus {
    background: rgba(64, 150, 255, 0.2);
}

.linetype-current::after {
    content: '▼';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #aaa;
    pointer-events: none;
    transition: color 0.2s ease;
}

.linetype-current:hover::after {
    color: #fff;
}

.linetype-preview-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-left: 1px solid #555;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.linetype-preview-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #4096ff;
}

.linetype-preview-btn:active {
    background: rgba(64, 150, 255, 0.3);
    transform: scale(0.95);
}

.linetype-icon {
    line-height: 1;
    transition: transform 0.2s ease;
    font-family: monospace;
}

.linetype-preview-btn:hover .linetype-icon {
    transform: scale(1.1);
}

/* ===== INTEGRATED LAYER PANEL ===== */
.layer-panel-integrated {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    min-width: 120px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.layer-panel-integrated:hover {
    border-color: #777;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.layer-current {
    flex: 1;
    position: relative;
}

.layer-select {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
    border: none;
    padding: 0 8px;
    font-size: 11px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-color 0.2s ease;
}

.layer-select option {
    background: #2a2a2a;
    color: #fff;
    padding: 4px 8px;
}

.layer-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.layer-select:focus {
    background: rgba(64, 150, 255, 0.2);
}

.layer-current::after {
    content: '▼';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    color: #aaa;
    pointer-events: none;
    transition: color 0.2s ease;
}

.layer-current:hover::after {
    color: #fff;
}

.layer-manager-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-left: 1px solid #555;
    height: 100%;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.layer-manager-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #4096ff;
}

.layer-manager-btn:active {
    background: rgba(64, 150, 255, 0.3);
    transform: scale(0.95);
}

.layer-manager-btn .layer-icon {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.layer-manager-btn:hover .layer-icon {
    transform: scale(1.1);
}

/* ===== MINIMAL LAYER PANEL ===== */
.minimal-layer-panel {
    position: absolute;
    top: 10px;
    right: 80px;
    background: #222;
    color: #fff;
    padding: 0;
    font-family: sans-serif;
    font-size: 12px;
    width: 400px;
    border: 1px solid #555;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: default;
}

/* Properties Panel - Same style but different position */
#propertiesPanel {
    right: 500px; /* Position to the left of layer panel */
    width: 300px; /* Slightly narrower than layer panel */
}

/* When dragging, use fixed positioning for free movement */
.minimal-layer-panel.dragging {
    position: fixed !important;
}

.layer-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    padding: 5px 10px;
    font-weight: bold;
    cursor: move;
    user-select: none;
    border-bottom: 1px solid #555;
}

.layer-panel-header:hover {
    background: #444;
}

.layer-panel-header span {
    flex: 1;
}

.layer-panel-header button {
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
}

.layer-panel-content {
    padding: 10px;
}

.layer-list {
    max-height: 300px;
    overflow-y: auto;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    padding: 2px;
}

.layer-item input[type="radio"] {
    margin: 0;
}

.layer-item .layer-name {
    min-width: 80px;
    font-weight: bold;
}

.layer-item button {
    font-size: 12px;
    background: #333;
    color: #fff;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    min-width: 20px;
}

.layer-item button:hover {
    background: #555;
}

.layer-item select {
    font-size: 12px;
    background: #333;
    color: #fff;
    border: none;
    padding: 2px;
}

.layer-item input[type="color"] {
    width: 30px;
    height: 20px;
    border: none;
    cursor: pointer;
}

.add-layer-btn {
    width: 100%;
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.add-layer-btn:hover {
    background: #45a049;
}

/* New Layer Creation Form */
.new-layer-form {
    margin-top: 10px;
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 3px;
}

.new-layer-input-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.new-layer-input-row input[type="text"] {
    flex: 1;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 4px 6px;
    font-size: 12px;
    border-radius: 2px;
    outline: none;
}

.new-layer-input-row input[type="text"]:focus {
    border-color: #4CAF50;
    background: #3a3a3a;
}

.new-layer-actions {
    display: flex;
    gap: 2px;
}

.new-layer-confirm {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 2px;
    font-weight: bold;
}

.new-layer-confirm:hover {
    background: #45a049;
}

.new-layer-cancel {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 2px;
    font-weight: bold;
}

.new-layer-cancel:hover {
    background: #d32f2f;
}

/* Properties Panel Specific Styles */
.no-selection {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.property-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.property-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.property-group-title {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
}

.property-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    min-height: 20px;
}

.property-label {
    color: #ccc;
    font-size: 11px;
    flex: 1;
    min-width: 80px;
}

.property-value {
    flex: 1;
    max-width: 150px;
}

.property-input {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 2px 4px;
    font-size: 11px;
    width: 100%;
    border-radius: 2px;
    outline: none;
}

.property-input:focus {
    border-color: #4CAF50;
    background: #3a3a3a;
}

.property-select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 2px 4px;
    font-size: 11px;
    width: 100%;
    border-radius: 2px;
    outline: none;
}

.property-readonly {
    background: #2a2a2a;
    color: #aaa;
    border: 1px solid #444;
    padding: 2px 4px;
    font-size: 11px;
    width: 100%;
    border-radius: 2px;
    cursor: not-allowed;
}

/* Dragging state */
.minimal-layer-panel.dragging {
    pointer-events: none;
}

.minimal-layer-panel.dragging .layer-panel-header {
    pointer-events: auto;
}

/* Remove old layer panel styles */

/* Copyright Footer */
.copyright-footer {
    position: fixed;
    bottom: 36px;
    right: 4px;
    background: transparent;
    color: #bbb;
    font-size: 10px;
    padding: 0;
    font-family: 'Courier New', monospace;
    z-index: 100;
    pointer-events: none;
    user-select: none;
    opacity: 1;
}

/* PDF Export Dialog Styles */
.pdf-export-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.pdf-dialog-content {
    background: linear-gradient(180deg, #2a2a2a 0%, #222 100%);
    border: 2px solid #444;
    border-radius: 6px;
    width: 800px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.pdf-dialog-header {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-bottom: 2px solid #444;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-dialog-header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.pdf-dialog-close {
    background: linear-gradient(180deg, #ff4444, #cc3333);
    color: white;
    border: 1px solid #999;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.pdf-dialog-close:hover {
    background: linear-gradient(180deg, #ff6666, #dd4444);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pdf-dialog-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pdf-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pdf-preview-panel {
    display: flex;
    flex-direction: column;
}

.pdf-section {
    border: 1px solid #444;
    border-radius: 4px;
    padding: 12px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pdf-section h4 {
    margin: 0 0 8px 0;
    color: #ccc;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #444;
    padding-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.pdf-section select,
.pdf-section input[type="number"] {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #666;
    border-radius: 3px;
    font-size: 11px;
    background: #333;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.pdf-section select:focus,
.pdf-section input[type="number"]:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 4px rgba(0, 120, 212, 0.3);
}

.pdf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: pointer;
    color: #ccc;
    font-family: 'Courier New', monospace;
}

.pdf-radio-group input[type="radio"] {
    accent-color: #0078d4;
}

.pdf-custom-scale {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdf-custom-scale input {
    width: 60px;
    background: #333;
    color: #fff;
    border: 1px solid #666;
}

.pdf-custom-scale span {
    color: #ccc;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.pdf-margins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pdf-margins label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #ccc;
    font-family: 'Courier New', monospace;
}

.pdf-margins input {
    width: 50px;
    margin-left: 6px;
    background: #333;
    color: #fff;
    border: 1px solid #666;
}

.pdf-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pdf-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: pointer;
    color: #ccc;
    font-family: 'Courier New', monospace;
}

.pdf-checkboxes input[type="checkbox"] {
    accent-color: #0078d4;
}

.pdf-preview-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.pdf-preview-page {
    position: relative;
    border: 2px solid #666;
    background: #f8f8f8;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.pdf-preview-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: white;
}

.pdf-preview-info {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
}

.preview-title {
    font-weight: bold;
    margin-bottom: 2px;
}

.preview-dimensions,
.preview-scale {
    font-size: 9px;
    color: #ccc;
}

.pdf-export-info {
    margin-top: 12px;
    padding: 8px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #444;
    border-radius: 3px;
}

.export-info-row {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    font-size: 11px;
    font-family: 'Courier New', monospace;
}

.info-label {
    color: #999;
}

.info-value {
    color: #ccc;
    font-weight: bold;
}

.pdf-preview-content {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed #0078d4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 10px;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: rgba(0, 120, 212, 0.1);
}

.area-visualization {
    position: absolute;
    border: 2px solid #00ff00 !important;
    background: rgba(0, 255, 0, 0.15) !important;
    border-radius: 2px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 6px rgba(0, 255, 0, 0.3);
}

.area-visualization::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px dashed #88ff88;
    border-radius: 2px;
}

.pdf-dialog-footer {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-top: 2px solid #444;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pdf-btn {
    padding: 6px 16px;
    border: 1px solid #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: all 0.2s ease;
}

.pdf-btn-cancel {
    background: linear-gradient(180deg, #4a4a4a, #333);
    color: #ccc;
    border-color: #666;
}

.pdf-btn-cancel:hover {
    background: linear-gradient(180deg, #555, #3a3a3a);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pdf-btn-export {
    background: linear-gradient(180deg, #0078d4, #005a9e);
    color: white;
    border-color: #005a9e;
}

.pdf-btn-export:hover {
    background: linear-gradient(180deg, #106ebe, #004578);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
