/* Deliciosa Shipping Map Plugin Styles */

/* Container Styles */
.deliciosa-shipping-map-container {
    margin: 30px 0;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: #fff;
}

.deliciosa-shipping-map-container.style-elegant {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.deliciosa-shipping-map-container.style-simple {
    background: #fff;
    padding: 20px;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

/* Title Styles */
.deliciosa-map-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.deliciosa-shipping-map-container.style-elegant .deliciosa-map-title {
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.deliciosa-shipping-map-container.style-simple .deliciosa-map-title {
    color: #333;
    text-shadow: none;
}

/* Description Styles */
.deliciosa-map-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-size: 16px;
}

.deliciosa-shipping-map-container.style-elegant .deliciosa-map-description {
    color: #34495e;
    font-weight: 500;
}

/* Map Wrapper */
.deliciosa-map-wrapper {
    text-align: center;
    margin: 20px 0;
}

/* Map Image */
.deliciosa-map-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deliciosa-map-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.deliciosa-shipping-map-container.style-elegant .deliciosa-map-image {
    border-radius: 15px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.deliciosa-shipping-map-container.style-simple .deliciosa-map-image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

/* Map Info Section */
.deliciosa-map-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.deliciosa-shipping-map-container.style-elegant .deliciosa-map-info {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.deliciosa-shipping-map-container.style-simple .deliciosa-map-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.map-legend {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.map-stats {
    margin: 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.map-updated {
    margin: 10px 0 0 0;
    color: #777;
    font-size: 12px;
}

/* Placeholder Styles */
.deliciosa-map-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #ddd;
}

.deliciosa-map-placeholder p {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .deliciosa-shipping-map-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .deliciosa-map-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .deliciosa-map-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .deliciosa-map-info {
        padding: 15px;
    }
    
    .map-legend,
    .map-stats {
        font-size: 13px;
    }
    
    .map-updated {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .deliciosa-shipping-map-container {
        padding: 15px;
    }
    
    .deliciosa-map-title {
        font-size: 20px;
    }
    
    .deliciosa-map-description {
        font-size: 13px;
    }
}

/* Admin Styles */
.deliciosa-admin-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.deliciosa-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.deliciosa-card h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ddd;
}

.status-connected {
    color: #28a745;
    font-weight: 600;
}

.status-disconnected {
    color: #dc3545;
    font-weight: 600;
}

.status-ready {
    color: #28a745;
    font-weight: 600;
}

.status-not-ready {
    color: #ffc107;
    font-weight: 600;
}

.deliciosa-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.usage-section {
    margin-bottom: 30px;
}

.usage-section h3 {
    color: #23282d;
    margin-bottom: 10px;
}

.usage-section h4 {
    color: #666;
    margin-top: 20px;
    margin-bottom: 10px;
}

.shortcode-example {
    display: block;
    background: #f1f1f1;
    padding: 15px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    margin: 10px 0;
    border-left: 4px solid #0073aa;
}

.shortcode-options {
    list-style: none;
    padding: 0;
}

.shortcode-options li {
    margin: 8px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.shortcode-options code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.code-examples {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.code-examples code {
    display: block;
    background: #f1f1f1;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    border-left: 3px solid #28a745;
}

/* Modal Styles */
.deliciosa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-top: 0;
    color: #23282d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-text {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Form Table Improvements */
.form-table th {
    width: 200px;
    font-weight: 600;
}

.form-table td {
    padding: 15px 10px;
}

.form-table input[type="text"],
.form-table input[type="password"],
.form-table input[type="number"],
.form-table input[type="time"],
.form-table input[type="url"],
.form-table select {
    width: 100%;
    max-width: 400px;
}

.form-table .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Button Styles */
.button.button-secondary {
    margin-left: 10px;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .deliciosa-actions {
        flex-direction: column;
    }
    
    .deliciosa-actions .button {
        width: 100%;
        margin: 5px 0;
    }
}
