/*
 * Cast Conductor Proprietary License v5
 * SPDX-License-Identifier: LicenseRef-CastConductor-Proprietary-v5
 * 
 * Copyright (c) 2025 CastConductor.com. All Rights Reserved.
 * 
 * This file is part of Cast Conductor ("Software"). The Software and its source
 * code constitute proprietary, confidential, and trade secret information of
 * CastConductor.com ("Company"). Any access or use is governed strictly by the
 * Cast Conductor Proprietary License v5 ("License"). By installing, copying,
 * accessing, compiling, or otherwise using the Software you agree to be bound by
 * all terms of the License. If you do not agree, you must cease use immediately.
 * 
 * Key Terms (Summary – see full License for binding terms):
 *  1. No Redistribution: You may not publish, distribute, sublicense, rent,
 *     lease, transfer, sell, or otherwise make the Software (or any derivative)
 *     available to any third party without prior written consent of Company.
 *  2. No Modification: Modification, reverse engineering, decompilation, or
 *     disassembly is prohibited except to the limited extent expressly permitted
 *     by applicable law that cannot be contractually waived.
 *  3. Confidentiality: Treat all source code and related artifacts as Company
 *     Confidential Information. Maintain at least the same degree of care as for
 *     your own confidential materials, and not less than reasonable care.
 *  4. No Patent License: No express or implied patent rights are granted. Future
 *     patents (if any) are fully reserved.
 *  5. No Trademark License: Company names, marks, and logos may not be used
 *     without prior written permission.
 *  6. Limited Internal Use: Use is limited solely to internal evaluation and
 *     operation of licensed Cast Conductor deployments. Commercial hosting or
 *     resale as a service requires a separate written agreement.
 *  7. Telemetry & License Validation: The Software may periodically transmit a
 *     hashed installation identifier, domain (or site ID), plugin/app version,
 *     and a truncated (non-reversible) fragment of the license key solely to
 *     validate activation status and enforce licensing. This minimal "phone home"
 *     check contains no personal or content data. If optional telemetry is later
 *     introduced it will be limited to aggregate operational metrics (no PII),
 *     fully documented, and optionally disableable per published instructions.
 *  8. Third-Party Components: The Software may include open source components
 *     covered by their own licenses. See THIRD-PARTY-NOTICES.md. Those licenses
 *     govern their respective components; this License governs all remaining code.
 *  9. Export Compliance: You are responsible for compliance with all applicable
 *     export control and sanctions laws.
 * 10. Warranty Disclaimer: THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF
 *     ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO MERCHANTABILITY,
 *     FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
 * 11. Limitation of Liability: IN NO EVENT WILL COMPANY OR AUTHORS BE LIABLE FOR
 *     ANY INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE
 *     DAMAGES, OR LOST PROFITS, EVEN IF ADVISED OF THE POSSIBILITY.
 * 12. Acceptance: Use of the Software constitutes acceptance of the License.
 * 13. Enforcement: Unauthorized reproduction or distribution may result in civil
 *     and criminal penalties and will be prosecuted to the maximum extent allowed
 *     by law.
 * 
 * Authoritative EULA: EULA-v5.1.md (repository root – private) and https://castconductor.com/eula
 * Precedence: If this summary conflicts with the EULA, the EULA governs.
 * Revision: Current EULA revision v5.1 (subject to update; check EULA for current enterprise thresholds).
 * 
 * Full License text available from: licensing@castconductor.com
 * Security reports: security@castconductor.com
 * Commercial inquiries: licensing@castconductor.com
 * 
 * END OF HEADER
 */
/* Album Artwork Admin Container */
#album-artwork-admin {
    max-width: 1200px;
    margin: 20px 0;
}

#album-artwork-admin .postbox {
    margin-bottom: 20px;
}

#album-artwork-admin .postbox-header h2 {
    color: #1d2327;
    font-size: 18px;
    margin: 0;
    padding: 12px 16px;
}

/* Search Form */
.artwork-search-form {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.artwork-search-form .form-group {
    margin-bottom: 15px;
}

.artwork-search-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #23282d;
}

.artwork-search-form input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.artwork-search-form input[type="text"]:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.artwork-search-form .checkbox-group {
    margin-top: 15px;
}

.artwork-search-form .checkbox-group label {
    display: inline-block;
    margin-left: 8px;
    font-weight: normal;
}

.search-buttons {
    margin-top: 20px;
}

.search-buttons .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e1e1e1;
}

.stat-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #007cba;
    display: block;
}

/* Test Results */
.test-result {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.test-result.success {
    background: #f0f9ff;
    border-left-color: #00a32a;
}

.test-result.error {
    background: #fef7f7;
    border-left-color: #d63638;
}

.test-result h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #23282d;
}

.test-details {
    font-size: 14px;
    line-height: 1.5;
}

.test-details img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* API Test Results */
.api-test-result {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.api-response {
    margin: 8px 0;
    padding: 8px;
    background: rgba(0,0,0,0.02);
    border-radius: 4px;
    font-size: 13px;
}

/* Search Results */
#search-results img {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
}

/* Notice Styling */
.notice {
    margin: 15px 0;
    padding: 12px;
    border-radius: 6px;
}

.notice.notice-success {
    background: #00a32a;
    color: white;
    border: none;
}

.notice.notice-warning {
    background: #ffb900;
    color: #1d2327;
    border: none;
}

.notice.notice-error {
    background: #d63638;
    color: white;
    border: none;
}

.notice.notice-info {
    background: #007cba;
    color: white;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .search-buttons .button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    #search-results img {
        max-width: 200px;
    }
}

/* Action Buttons */
.action-buttons {
    margin: 20px 0;
}

.action-buttons .button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.button-secondary {
    background: #f1f1f1;
    border-color: #c3c4c7;
    color: #50575e;
}

.button-secondary:hover {
    background: #e8e8e8;
    border-color: #a7aaad;
    color: #1d2327;
}

.button-primary {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Form Enhancements */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 15px;
    }
}
