/**
 * Location & Area Manager Styles
 */

.location-area-manager {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.manager-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.manager-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Linke Seite: Standort-Liste */
.locations-panel {
    background: #f7fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
}

.locations-panel h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 600;
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.location-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.location-item.active {
    border-color: #005fa8;
    background: #ebf8ff;
}

.location-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.location-count {
    font-size: 0.85rem;
    color: #718096;
}

.location-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.location-item:hover .location-actions {
    opacity: 1;
}

/* Rechte Seite: Bereiche */
.areas-panel {
    padding: 20px;
}

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

.areas-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #2d3748;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f7fafc;
    border-radius: 6px;
    transition: all 0.2s;
}

.area-item:hover {
    background: #edf2f7;
}

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

.area-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #e2e8f0;
}

.btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #005fa8;
    color: #ffffff;
}

.btn-primary:hover {
    background: #004a80;
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

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

/* Loading & Empty States */
.loading, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

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

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

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

.modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    line-height: 1;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #005fa8;
    box-shadow: 0 0 0 3px rgba(0, 95, 168, 0.1);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #718096;
}

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

/* Toast */
.toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .manager-content {
        grid-template-columns: 1fr;
    }
    
    .locations-panel {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}
