* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 50px;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    font-weight: 600;
    color: #2c3e50;
}

.toggle-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.layers-panel, .attributes-panel {
    flex: 1;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 5px;
}

.layer-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.layer-item:hover {
    background-color: #e9ecef;
}

.layer-item:last-child {
    border-bottom: none;
}

.layer-checkbox {
    margin-right: 10px;
}

.layer-name {
    flex: 1;
    font-size: 0.9rem;
    user-select: none;
}

.layer-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.layer-item:hover .layer-actions {
    opacity: 1;
}

.layer-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 3px;
}

.layer-action-btn:hover {
    background-color: #dee2e6;
    color: #495057;
}

/* Attributes Panel */
.attributes-content {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
}

.no-attributes {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.attributes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.attributes-table th,
.attributes-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.attributes-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.attributes-table tr:hover {
    background-color: #f8f9fa;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Leaflet Draw Customization */
.leaflet-draw-toolbar {
    margin-top: 10px !important;
}

.leaflet-draw-toolbar a {
    background-color: white !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    margin: 2px !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
}

.leaflet-draw-toolbar a:hover {
    background-color: #f8f9fa !important;
}

.leaflet-draw-actions {
    background: white !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.leaflet-draw-actions li {
    border-bottom: 1px solid #eee !important;
}

.leaflet-draw-actions li:last-child {
    border-bottom: none !important;
}

.leaflet-draw-actions a {
    color: #495057 !important;
    padding: 8px 12px !important;
}

.leaflet-draw-actions a:hover {
    background-color: #3498db !important;
    color: white !important;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
    max-width: 350px;
    cursor: pointer;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.info {
    background-color: #17a2b8;
}

.notification.warning {
    background-color: #ffc107;
    color: #212529;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
    min-width: 200px;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.context-menu li:hover {
    background-color: #3498db;
    color: white;
}

.context-menu li i {
    width: 16px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 400px;
    max-width: 500px;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.close-modal:hover {
    color: #495057;
}

.modal-body {
    padding: 20px;
}

.modal-body input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-body input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        height: 100%;
        z-index: 500;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 350px;
    }
    
    .modal-content {
        min-width: 90%;
        margin: 20px;
    }
}

/* Scrollbar Customization */
.layer-list::-webkit-scrollbar,
.attributes-content::-webkit-scrollbar {
    width: 6px;
}

.layer-list::-webkit-scrollbar-track,
.attributes-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.layer-list::-webkit-scrollbar-thumb,
.attributes-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.layer-list::-webkit-scrollbar-thumb:hover,
.attributes-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ... (mantenha todo o CSS anterior e adicione estas novas regras) */

/* Dropdown para exportação */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    background-color: #3498db;
    color: white;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Style Panel */
.style-panel {
    margin-bottom: 20px;
}

.style-content {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    padding: 15px;
}

.style-control {
    margin-bottom: 15px;
}

.style-control label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.style-control input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
}

.style-control input[type="range"] {
    width: 100%;
}

/* ... (mantenha todo o CSS anterior) */

/* Leaflet Draw Customization - CORREÇÕES ESPECÍFICAS */
.leaflet-draw-toolbar {
    margin-top: 10px !important;
    border: none !important;
    background: transparent !important;
}

.leaflet-draw-toolbar a {
    background-color: white !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    margin: 4px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.leaflet-draw-toolbar a:hover {
    background-color: #3498db !important;
    border-color: #3498db !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3) !important;
}

/* REMOVER COMPLETAMENTE os ícones padrão duplicados */
.leaflet-draw-toolbar a .leaflet-draw-icon {
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
    display: none !important;
}

/* REMOVER ícones de texto */
.leaflet-draw-toolbar a .leaflet-draw-tooltip {
    display: none !important;
}

/* Ícones SVG customizados - CORRIGIDOS */
.leaflet-draw-toolbar .leaflet-draw-draw-marker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

.leaflet-draw-toolbar .leaflet-draw-draw-marker:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
}

.leaflet-draw-toolbar .leaflet-draw-draw-polyline {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'%3E%3C/path%3E%3Cpath d='M19 9L5 15'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

.leaflet-draw-toolbar .leaflet-draw-draw-polyline:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'%3E%3C/path%3E%3Cpath d='M19 9L5 15'%3E%3C/path%3E%3C/svg%3E") !important;
}

.leaflet-draw-toolbar .leaflet-draw-draw-polygon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2'%3E%3C/polygon%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

.leaflet-draw-toolbar .leaflet-draw-draw-polygon:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2'%3E%3C/polygon%3E%3C/svg%3E") !important;
}

.leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

.leaflet-draw-toolbar .leaflet-draw-draw-rectangle:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3C/svg%3E") !important;
}

/* ÍCONES DE EDITAR E EXCLUIR - CORRIGIDOS */
.leaflet-draw-toolbar .leaflet-draw-edit-edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

.leaflet-draw-toolbar .leaflet-draw-edit-edit:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E") !important;
}

.leaflet-draw-toolbar .leaflet-draw-edit-remove {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3Cline x1='10' y1='11' x2='10' y2='17'%3E%3C/line%3E%3Cline x1='14' y1='11' x2='14' y2='17'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 22px 22px !important;
}

.leaflet-draw-toolbar .leaflet-draw-edit-remove:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'%3E%3C/path%3E%3Cline x1='10' y1='11' x2='10' y2='17'%3E%3C/line%3E%3Cline x1='14' y1='11' x2='14' y2='17'%3E%3C/line%3E%3C/svg%3E") !important;
}

/* Garantir que os ícones do Leaflet Draw sejam os únicos visíveis */
.leaflet-draw-toolbar a:before {
    display: none !important;
}

.leaflet-bar {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.leaflet-control-zoom a {
    background-color: white !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    color: #333 !important;
    font-weight: bold !important;
    transition: all 0.2s ease !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
}

.leaflet-control-zoom a:hover {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.leaflet-draw-actions {
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid #dee2e6 !important;
    overflow: hidden !important;
}

.leaflet-draw-actions li {
    border-bottom: 1px solid #f1f3f4 !important;
    margin: 0 !important;
}

.leaflet-draw-actions li:last-child {
    border-bottom: none !important;
}

.leaflet-draw-actions a {
    color: #495057 !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    display: block !important;
    transition: all 0.2s ease !important;
}

.leaflet-draw-actions a:hover {
    background-color: #3498db !important;
    color: white !important;
}

/* Layer List - Ícones sempre visíveis - CORRIGIDO */
.layer-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    margin: 0;
    padding: 0;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.layer-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layer-item:last-child {
    border-bottom: none;
}

.layer-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #3498db;
}

.layer-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.layer-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    user-select: none;
    padding-right: 10px;
    min-width: 0; /* Permite que o texto quebre */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.layer-actions {
    display: flex !important; /* FORÇAR display */
    gap: 6px;
    opacity: 1 !important; /* Sempre visível */
    visibility: visible !important;
    flex-shrink: 0; /* Não encolher */
}

.layer-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.8rem; /* Um pouco menor */
    padding: 5px;
    border-radius: 4px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.layer-action-btn:hover {
    background-color: #3498db;
    color: white;
    transform: scale(1.1);
}

.layer-action-btn.zoom-btn:hover {
    background-color: #28a745;
}

.layer-action-btn.style-btn:hover {
    background-color: #6f42c1;
}

.layer-action-btn.rename-btn:hover {
    background-color: #fd7e14;
}

.layer-action-btn.remove-btn:hover {
    background-color: #dc3545;
}

/* Style Panel - RECOLHÍVEL */
.style-panel {
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    overflow: hidden;
}

.style-panel-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.style-panel-header:hover {
    background-color: #e9ecef;
}

.style-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.style-panel-toggle {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.style-panel-toggle.rotated {
    transform: rotate(180deg);
}

.style-panel-content {
    padding: 15px;
    transition: all 0.3s ease;
    max-height: 500px;
    overflow: hidden;
}

.style-panel-content.collapsed {
    max-height: 0;
    padding: 0 15px;
    overflow: hidden;
}

.style-control {
    margin-bottom: 15px;
}

.style-control label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.style-control input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

.style-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
}

.style-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.style-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

#apply-style {
    width: 100%;
    margin-top: 10px;
}

/* Ajustes para painéis */
.layers-panel {
    margin-bottom: 20px;
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* Remover context menu já que não é mais usado */
.context-menu {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .leaflet-draw-toolbar a {
        width: 40px !important;
        height: 40px !important;
        margin: 3px !important;
    }
    
    .layer-item {
        padding: 10px 12px;
    }
    
    .layer-actions {
        gap: 4px;
    }
    
    .layer-action-btn {
        width: 24px;
        height: 24px;
        padding: 4px;
        font-size: 0.75rem;
    }
    
    .layer-name {
        font-size: 0.85rem;
    }
}

/* Scrollbar Customization */
.layer-list::-webkit-scrollbar {
    width: 6px;
}

.layer-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.layer-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.layer-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
