/* Edit Parcelles specific styles */

.edit-parcelles-wrapper {
    max-width: 1800px;
}

.edit-parcelles-content {
    max-width: none;
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

button, select {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.btn-save {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-cancel {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

select {
    border: 2px solid #e0e0e0;
    padding: 12px 16px;
    background: white;
}

.map-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.map-container {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: default;
}
.map-inner {
    position: relative;
    display: inline-block;
    transform-origin: 0 0;
    transition: transform 0.2s ease;
}
.zoom-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}
.zoom-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.zoom-btn:hover {
    background: #667eea;
    color: white;
}
.zoom-level {
    background: white;
    border: 2px solid #667eea;
    padding: 5px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: #667eea;
    border-radius: 5px;
}
.map-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}
svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
svg.editing-mode {
    pointer-events: all;
}
.parcelle-polygon {
    fill: rgba(76, 175, 80, 0.3);
    stroke: #4CAF50;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: all;
}
.parcelle-polygon:hover {
    fill: rgba(76, 175, 80, 0.5);
    stroke-width: 3;
}
.parcelle-polygon.selected {
    fill: rgba(255, 152, 0, 0.5);
    stroke: #FF9800;
    stroke-width: 3;
}
.parcelle-polygon.editing {
    fill: rgba(33, 150, 243, 0.5);
    stroke: #2196F3;
    stroke-width: 3;
}
.parcelle-polygon.handicap {
    fill: rgba(0, 100, 220, 0.45);
    stroke: #003D99;
    stroke-width: 2.5;
    stroke-dasharray: 7 3;
}
.parcelle-polygon.handicap:hover {
    fill: rgba(0, 100, 220, 0.65);
    stroke: #002266;
}
.control-point {
    fill: #FF5722;
    stroke: white;
    stroke-width: 2;
    cursor: move;
    pointer-events: all;
}
.control-point:hover {
    fill: #F44336;
}
.center-point {
    fill: #2196F3;
    stroke: white;
    stroke-width: 3;
    cursor: move;
    opacity: 0.8;
    pointer-events: all;
}
.center-point:hover {
    fill: #1976D2;
    opacity: 1;
}
.temp-point {
    fill: #FF9800;
    stroke: white;
    stroke-width: 2;
    r: 8;
}
.temp-line {
    stroke: #FF9800;
    stroke-width: 2;
    stroke-dasharray: 5,5;
    fill: none;
}
.btn-create {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}
.btn-delete {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}
.info-panel {
    width: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.info-panel h3 {
    color: #667eea;
    margin-bottom: 15px;
}
.info-item {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
}
.info-item label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.info-item input {
    width: 100%;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: monospace;
}
.message {
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 500;
}
.message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #4CAF50;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f44336;
}
.instructions {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}
.instructions.collapsed {
    padding: 15px;
}
.instructions h3 {
    color: #1976d2;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.instructions-toggle {
    background: #1976d2;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}
.instructions-toggle:hover {
    background: #1565c0;
    transform: scale(1.1);
}
.instructions-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.instructions.collapsed .instructions-content {
    max-height: 0;
    opacity: 0;
}
.instructions ul {
    margin-left: 20px;
    margin-top: 10px;
}
.instructions li {
    margin: 5px 0;
    color: #555;
}
