/* Frontend styles for NTX Delivery Zone Manager */

.ntx-delivery-zone-container {
    max-width: 100%;
    margin: 20px 0;
}

.ntx-dz-two-columns {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.ntx-dz-map-column {
    flex: 1;
    min-height: 400px;
	z-index: 1;
}

.ntx-dz-controls-column {
    flex: 1;
    min-width: 250px;
}

.ntx-dz-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 500;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.ntx-dz-address-input {
    padding: 30px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ntx-dz-input-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.ntx-dz-address-field {
    width: 100%;
    padding: 1.5rem 18px !important;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
	background-color: #F7F7F7;
	border-radius: none !important;
	border-bottom: 1px solid !important;
	border: none !important;
}

.ntx-dz-address-field:focus {
    outline: none !important;
	box-shadow: none !important;
}

.ntx-dz-address-field::placeholder {
    color: #999;
}

.ntx-dz-check-btn,
.ntx-dz-locate-btn {
    width: 100%;
    padding: 15px !important;
    background: #C9AF7B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.ntx-dz-locate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #C9AF7B;
    margin-top: 12px;
    opacity: 0.9;
}

.ntx-dz-locate-btn:hover {
    background: #b8a06a;
    opacity: 1;
}

.ntx-dz-locate-icon {
    font-size: 16px;
}

.ntx-dz-message {
    display: none;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
    text-align: center;
    border-left: 4px solid;
}

.ntx-dz-message.ntx-dz-success {
    background: #f0f9f0;
    border-color: #4caf50;
    color: #2e7d32;
}

.ntx-dz-message.ntx-dz-error {
    background: #fef5f5;
    border-color: #f44336;
    color: #c62828;
}

.ntx-dz-message.ntx-dz-info {
    background: #f0f8ff;
    border-color: #2196f3;
    color: #1565c0;
}

.ntx-delivery-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ntx-dz-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
    color: #555;
}

.ntx-dz-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 992px) {
    .ntx-dz-two-columns {
        flex-direction: column;
    }
    
    .ntx-dz-map-column {
        order: 2;
    }
    
    .ntx-dz-controls-column {
        order: 1;
        min-width: auto;
    }
    
    .ntx-dz-address-input {
        height: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .ntx-dz-two-columns {
        gap: 15px;
    }
    
    .ntx-dz-controls-column {
        min-width: auto;
    }
    
    .ntx-dz-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Leaflet marker adjustments */
.leaflet-container {
    font-family: inherit;
}

.leaflet-popup-content-wrapper {
    border-radius: 6px;
}

.leaflet-popup-content {
    font-size: 14px;
    line-height: 1.5;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ntx-dz-address-field {
        border-width: 3px;
    }
    
    .ntx-dz-check-btn,
    .ntx-dz-locate-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ntx-dz-check-btn,
    .ntx-dz-locate-btn {
        transition: none;
    }
    
    .ntx-dz-check-btn:hover,
    .ntx-dz-locate-btn:hover {
        transform: none;
    }
    
    .ntx-dz-spinner {
        animation: none;
    }
    
    @keyframes slideIn {
        from, to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}