/* WBN Image Optimizer Lite - Admin Styles */

.wbio-wrap {
    max-width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wbio-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.wbio-logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wbio-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbio-badge-pro {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
}

.wbio-badge-lite {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
}

.wbio-hero {
    text-align: center;
    margin: 40px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
}

.wbio-hero-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.wbio-hero-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.wbio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.wbio-stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.wbio-stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.wbio-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.wbio-stat-sublabel {
    font-size: 12px;
    color: #9ca3af;
}

.wbio-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    border: 1px solid #e5e7eb;
}

.wbio-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.wbio-section-description {
    color: #6b7280;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.wbio-optimize-form {
    max-width: 100%;
}

.wbio-form-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.wbio-selected-count {
    color: #6b7280;
    font-size: 14px;
}

.wbio-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.wbio-form-group {
    display: flex;
    flex-direction: column;
}

.wbio-form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.wbio-input,
.wbio-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: all 0.2s;
}

.wbio-input:focus,
.wbio-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.wbio-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.wbio-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.wbio-btn-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
}

.wbio-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.wbio-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.wbio-btn-secondary:hover {
    background: #e5e7eb;
}

.wbio-btn-outline {
    background: transparent;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.wbio-btn-outline:hover {
    background: #f0f6fc;
}

.wbio-btn-danger {
    background: #ef4444;
    color: #fff;
}

.wbio-btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.wbio-btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.wbio-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wbio-progress {
    margin-top: 20px;
}

.wbio-progress-bar {
    width: 100%;
    height: 40px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.wbio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.wbio-progress-text {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.wbio-notice {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.wbio-notice-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.wbio-notice p {
    margin: 0;
    font-size: 14px;
}

.wbio-scanner-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.wbio-unused-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.wbio-unused-item {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.wbio-unused-item:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wbio-unused-item.selected {
    border-color: #2271b1;
    background: #f0f6fc;
}

.wbio-unused-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.wbio-unused-item-info {
    padding: 8px;
    font-size: 12px;
    color: #6b7280;
    background: #fff;
}

.wbio-unused-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.wbio-footer {
    text-align: center;
    padding: 30px 0;
    color: #9ca3af;
    font-size: 13px;
}

.wbio-footer a {
    color: #2271b1;
    text-decoration: none;
}

.wbio-footer a:hover {
    text-decoration: underline;
}

/* Loading spinner */
.wbio-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f4f6;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: wbio-spin 0.8s linear infinite;
}

@keyframes wbio-spin {
    to { transform: rotate(360deg); }
}
