/* Skyworld COA Labs Plugin Styles */

.skyworld-coa-labs {
    margin: 20px 0;
}

.skyworld-coa-labs .coa-section {
    margin-bottom: 40px;
}

.skyworld-coa-labs .coa-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.skyworld-coa-labs .coa-table {
    overflow-x: auto;
    margin-bottom: 30px;
}

.skyworld-coa-labs table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.skyworld-coa-labs table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skyworld-coa-labs table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.skyworld-coa-labs table tr:hover {
    background: #f8f9fa;
}

.skyworld-coa-labs table tr:last-child td {
    border-bottom: none;
}

.skyworld-coa-labs .coa-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #007cba;
    background: white;
    cursor: pointer;
}

.skyworld-coa-labs .coa-link:hover,
.skyworld-coa-labs .coa-link:focus {
    background: #007cba;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    outline: none;
}

.skyworld-coa-labs .coa-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Lightbox Styles */
.skyworld-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.skyworld-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.skyworld-lightbox-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 95%;
    max-height: 95%;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.skyworld-lightbox.active .skyworld-lightbox-content {
    transform: scale(1);
}

.skyworld-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.skyworld-lightbox-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.skyworld-close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skyworld-close-btn:hover,
.skyworld-close-btn:focus {
    background: #c0392b;
    transform: scale(1.1);
    outline: none;
}

.skyworld-close-btn:focus {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

#skyworld-pdf-container {
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skyworld-loading {
    text-align: center;
    color: #666;
}

.skyworld-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: skyworld-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.skyworld-loading p {
    margin: 0;
    font-size: 1rem;
}

/* PDF Viewer */
#skyworld-pdf-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .skyworld-coa-labs .coa-section h2 {
        font-size: 1.5rem;
    }
    
    .skyworld-coa-labs table th,
    .skyworld-coa-labs table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .skyworld-coa-labs .coa-link {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .skyworld-lightbox-content {
        margin: 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
    }
    
    .skyworld-lightbox-header {
        padding: 15px;
    }
    
    .skyworld-lightbox-header h3 {
        font-size: 1.2rem;
    }
    
    #skyworld-pdf-container {
        padding: 15px;
    }
    
    #skyworld-pdf-container iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .skyworld-coa-labs table {
        font-size: 0.8rem;
    }
    
    .skyworld-coa-labs table th,
    .skyworld-coa-labs table td {
        padding: 8px 6px;
    }
    
    #skyworld-pdf-container iframe {
        height: 300px;
    }
}