/* Drone Flight Info Widget v2.0 Styles */

.dfiw-v2-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2px;
    margin: 20px 0;
}

.dfiw-v2-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 13px;
    background: white;
}

.dfiw-v2-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 15px;
    z-index: 1000;
}

.dfiw-v2-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: dfiw-spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.dfiw-v2-error {
    background: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}

.dfiw-v2-success {
    background: #28a745;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .dfiw-v2-container {
        margin: 10px 0;
        border-radius: 10px;
    }
    
    .dfiw-v2-container iframe {
        border-radius: 8px;
    }
}

/* Admin dashboard styles */
.dfiw-v2-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.dfiw-v2-stats .card {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.dfiw-v2-stats .card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #50575e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dfiw-v2-stats .card h2, .dfiw-v2-stats .card h4 {
    margin: 0;
    font-weight: 600;
}

/* Plugin shortcode container */
.dfiw-v2-shortcode-container {
    margin: 20px 0;
    position: relative;
}

.dfiw-v2-shortcode-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dfiw-v2-container {
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    }
}

/* Full-width option */
.dfiw-v2-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    max-width: none;
}

/* Compact version */
.dfiw-v2-compact {
    height: 400px;
    border-radius: 8px;
}

.dfiw-v2-compact iframe {
    border-radius: 6px;
}