/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
}

.total-workers {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
}

.total-workers.warning {
    background: #f39c12;
}

.total-workers.danger {
    background: #e74c3c;
}

/* Botones */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

/* Loading Section */
.loading-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.loading-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.loading-card h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.loading-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Admin Section */
.admin-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.section-header h2 {
    color: #2c3e50;
}

.controls {
    display: flex;
    gap: 10px;
}

.controls select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
}

/* Main Section */
.main-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.section-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Areas Container */
.areas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.area-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.area-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.workers-control {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workers-control label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.input-group input {
    width: 80px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
}

.input-group button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
}

.area-actions {
    text-align: center;
    margin-top: 10px;
}

.area-actions .btn {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

/* Info Section */
.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

/* 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;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.modal-header h3 {
    color: #2c3e50;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 20px;
}

/* Loading */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #7f8c8d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Config Section */
.config-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.config-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #ecf0f1;
}

.areas-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-item label {
    cursor: pointer;
    flex: 1;
    margin: 0;
}

/* Sección de guardar todo */
.save-all-section {
    margin: 30px 0;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.save-all-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.save-all-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.save-all-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.save-status {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.save-status.success {
    color: #28a745;
}

.save-status.error {
    color: #dc3545;
}

.save-status.info {
    color: #17a2b8;
}

/* Botones de incremento/decremento */
.btn-increment, .btn-decrement {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-increment:hover, .btn-decrement:hover {
    background: #5a6268;
    transform: scale(1.1);
}

.btn-increment:active, .btn-decrement:active {
    transform: scale(0.95);
}

/* Información del área */
.area-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #555;
    flex: 1;
}

.info-value {
    font-weight: 500;
    color: #333;
    text-align: right;
    min-width: 60px;
}

.info-value.enabled {
    color: #28a745;
}

.info-value.disabled {
    color: #dc3545;
}

/* Detalles del área en modal */
.area-details {
    max-height: 70vh;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

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

.detail-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.coordinate-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.coordinates {
    margin-top: 10px;
}

.coordinate-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.coordinate-item:last-child {
    border-bottom: none;
}

.coord-index {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 25px;
    text-align: center;
}

.coord-lat, .coord-lon {
    color: #666;
    font-weight: 500;
}

.coord-lat::before {
    content: "Lat: ";
    color: #999;
}

.coord-lon::before {
    content: "Lon: ";
    color: #999;
}

/* Modal grande para mapa */
.large-modal .modal-content {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
}

/* Contenedor del mapa */
.map-container {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.area-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

.map-info {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.map-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}


/* Marcadores personalizados */
.custom-marker {
    background: none !important;
    border: none !important;
    font-size: 16px;
}

.start-marker {
    color: #27ae60;
}

.end-marker {
    color: #e74c3c;
}

/* Responsive para el mapa */
@media (max-width: 768px) {
    .large-modal .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .area-map {
        height: 300px;
    }
    
    .map-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== ESTILOS DE ADMINISTRACIÓN ===== */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #3498db;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    margin: 0;
    color: #2c3e50;
}

.users-list, .areas-list {
    display: grid;
    gap: 15px;
}

.user-card, .area-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info, .area-info {
    flex: 1;
}

.user-info h3, .area-info h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.user-role, .user-workers, .user-created, .area-status, .area-workers {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
}

.user-actions, .area-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-warning {
    background: #f39c12;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.config-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.config-item {
    margin-bottom: 15px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.config-item input, .config-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

.user-area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.user-area-item .area-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.user-area-item .area-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.large-modal .modal-content {
    max-width: 800px;
    width: 90%;
}

/* ===== ESTILOS DE LOGIN ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.login-header p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: #3498db;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

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

.login-footer {
    border-top: 1px solid #ecf0f1;
    padding-top: 20px;
    margin-top: 20px;
}

.login-footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.login-footer strong {
    color: #2c3e50;
}

/* Spinner para login */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .controls {
        justify-content: center;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
}

/* Estilos para selector de áreas */
.areas-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.areas-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.areas-input-container input {
    flex: 1;
}

.areas-info {
    color: #666;
    font-style: italic;
}

.config-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.areas-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background: #f9f9f9;
}

.area-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.area-item:last-child {
    border-bottom: none;
}

.area-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.area-item input[type="checkbox"] {
    margin: 0;
}

.area-name {
    font-weight: 500;
    color: #333;
}

.area-id {
    color: #666;
    font-size: 0.9em;
}

.area-status {
    margin-left: auto;
    font-size: 0.9em;
}

.area-status.enabled {
    color: #27ae60;
}

.area-status.disabled {
    color: #e74c3c;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.areas-help {
    background: #e8f4fd;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.areas-help p {
    margin-bottom: 10px;
    color: #2c5aa0;
    font-weight: 500;
}

.areas-help ul {
    margin: 0;
    padding-left: 20px;
}

.areas-help li {
    margin-bottom: 5px;
    color: #2c5aa0;
    font-size: 0.9em;
}

/* Estilos para vista previa de áreas */
.areas-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

.areas-preview h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 0.9em;
    font-weight: 600;
}

.areas-mini-table {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.area-mini-row {
    display: grid;
    grid-template-columns: 60px 1fr 30px 30px;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.85em;
}

.area-mini-id {
    font-weight: 600;
    color: #6c757d;
    text-align: center;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.area-mini-name {
    color: #495057;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.area-mini-status {
    text-align: center;
    font-size: 1.1em;
}

.btn-remove-area {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 4px 6px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-area:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-remove-area:active {
    transform: scale(0.95);
}

/* Responsive para mini tabla */
@media (max-width: 768px) {
    .area-mini-row {
        grid-template-columns: 50px 1fr 25px 25px;
        gap: 8px;
        padding: 6px 8px;
        font-size: 0.8em;
    }
    
    .area-mini-id {
        padding: 1px 4px;
    }
    
    .btn-remove-area {
        min-width: 20px;
        height: 20px;
        font-size: 0.7em;
        padding: 2px 4px;
    }
}
