.devise-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #1a1a1a;
  font-family: 'Courier New', Courier, monospace;
}

.devise-form {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
}

.devise-form h2 {
  margin-bottom: 2rem;
  color: #e0e0e0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.1em;
}

.devise-form .field {
  margin-bottom: 1.5rem;
}

.devise-form .field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.devise-form .field input,
.devise-form .actions input[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
}

.devise-form .field input {
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 2px;
  color: #e0e0e0;
}

.devise-form .field input:focus {
  outline: none;
  border-color: #666;
  background-color: #333;
}

.devise-form .actions {
  margin-top: 2rem;
}

.devise-form .actions input[type="submit"] {
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.1em;
}

.devise-form .actions input[type="submit"]:hover {
  background-color: #444;
  border-color: #555;
}

.devise-form .shared-links {
  margin-top: 1.5rem;
  text-align: center;
}

.devise-form .shared-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.devise-form .shared-links a:hover {
  color: #e0e0e0;
}

.devise-form .error-messages {
  color: #ff6b6b;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 2px;
  font-size: 0.9rem;
} 
.user-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.user-menu-btn {
  width: 40px;
  height: 40px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.user-menu-btn:hover {
  background-color: #333;
  border-color: #444;
}

.user-menu-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  min-width: 150px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #e0e0e0;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.user-menu-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.user-menu-item:hover {
  background-color: #333;
  color: #fff;
}

/* Layer Control Styles */
.layer-control {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.layer-control-container {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.layer-btn {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.layer-btn i {
  width: 16px;
  text-align: center;
}

.layer-btn:hover {
  background-color: #333;
  border-color: #444;
}

.layer-btn.active {
  background-color: #444;
  border-color: #555;
} 
body {
  background-color: #1a1a1a;
  font-family: 'Courier New', Courier, monospace;
  color: #e0e0e0;
  min-height: 100vh;
  margin: 0;
}

.dark-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dark-container .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.table-container {
  @extend .dark-container;
}

.table-container .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.table-search-container {
  padding: 1.5rem;
  border-bottom: 1px solid #333;
}

.table-search {
  width: 100%;
  padding: 0.75rem;
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 2px;
  color: #e0e0e0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  box-sizing: border-box;
}

.table-search:focus {
  outline: none;
  border-color: #666;
  background-color: #333;
}

.table-search::placeholder {
  color: #888;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 2px;
}

.table th {
  background-color: #2a2a2a;
  color: #e0e0e0;
  font-weight: normal;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  letter-spacing: 0.05em;
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  color: #e0e0e0;
}

.table tr:hover {
  background-color: #333;
}

.table a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.05em;
}

.table a:hover {
  color: #e0e0e0;
}

.table .status-badge {
  padding: 0.25rem 0.5rem;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 2px;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.table .sort-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.table .sort-link:hover {
  color: #e0e0e0;
}

.table .sort-link.active {
  color: #e0e0e0;
}

.table .clear-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.table .clear-search:hover {
  color: #e0e0e0;
}

.table-button {
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 2px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.1em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.table-button:hover {
  background-color: #444;
  border-color: #555;
  color: #e0e0e0;
  text-decoration: none;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem;
  background-color: #2a2a2a;
  border: 1px solid #333;
  border-radius: 2px;
  color: #e0e0e0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: #666;
  background-color: #333;
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
} 
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#map {
  height: 100vh;
  width: 100%;
}

/* Context Menu */
.context-menu {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  min-width: 150px;
}

.context-menu-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-menu-item:hover {
  background-color: #f5f5f5;
}

.context-menu-item i {
  width: 16px;
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.entity-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.entity-type-btn {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.entity-type-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.entity-type-btn i {
  font-size: 24px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn:hover {
  opacity: 0.9;
}

.area-tooltip {
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  color: black !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  text-align: center !important;
  min-width: 80px !important;
}

.area-tooltip::before {
  display: none !important;
}

/* Layer Control Styles */
.layer-control {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 8px;
}

.layer-control-container {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.layer-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.layer-btn:hover {
  opacity: 0.9;
}

/* Property button (yellow) */
.property-btn.active {
  background: #fff9c4;
  border-color: #fff59d;
  color: #f57f17;
}

/* Person button (blue) */
.person-btn.active {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #1565c0;
}

/* Organization button (green) */
.organization-btn.active {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
}

.layer-btn i {
  font-size: 14px;
}

/* Adjust map container to account for layer control */
.map-container {
  position: relative;
  padding-top: 48px; /* Height of layer control + padding */
}

/* Property type indicators in map popup */
.property-types {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
}

.property-type {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.property-type i {
  margin-right: 8px;
  font-size: 1.1em;
}

.property-type.summer-house {
  background-color: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}

.property-type.old-age {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #e1bee7;
}

/* Leaflet popup specific styles */
.leaflet-popup-content {
  min-width: 250px;
}

.leaflet-popup-content .property-types {
  margin: 12px 0;
}
