/**
 * Ballinkit Admin Setup Dashboard Styles
 */
.ballinkit-admin-wrap {
    max-width: 1200px;
    margin: 20px auto 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ballinkit-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 32px 40px;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.ballinkit-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ballinkit-badge {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.ballinkit-header h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.ballinkit-header p {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
    max-width: 700px;
    line-height: 1.5;
}

.ballinkit-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2px;
}

.ballinkit-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.ballinkit-tab-btn:hover {
    color: #0f172a;
    background: #f8fafc;
}

.ballinkit-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.ballinkit-tab-pane {
    display: none;
}

.ballinkit-tab-pane.active {
    display: block;
}

.ballinkit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ballinkit-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ballinkit-card-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #0f172a;
}

.ballinkit-card-header p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

.ballinkit-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.ballinkit-plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.ballinkit-plugin-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ballinkit-plugin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ballinkit-plugin-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.ballinkit-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ballinkit-status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ballinkit-status-badge.status-active {
    background: #dcfce7;
    color: #166534;
}

.ballinkit-status-badge.status-installed {
    background: #fef3c7;
    color: #92400e;
}

.ballinkit-status-badge.status-not_installed {
    background: #fee2e2;
    color: #991b1b;
}

.ballinkit-plugin-desc {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.ballinkit-plugin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ballinkit-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.ballinkit-color-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ballinkit-color-item label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.ballinkit-divider {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 20px 0;
}

.ballinkit-field-group {
    margin-bottom: 18px;
}

.ballinkit-field-group .ballinkit-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.ballinkit-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 8px;
    cursor: pointer;
}

.ballinkit-action-bar {
    position: sticky;
    bottom: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.ballinkit-msg {
    font-size: 14px;
    font-weight: 600;
}

.ballinkit-msg.success {
    color: #16a34a;
}

.ballinkit-msg.error {
    color: #dc2626;
}

.ballinkit-page-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ballinkit-page-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ballinkit-page-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2563eb;
    margin-top: 2px;
}

.ballinkit-page-item strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}

.ballinkit-page-item p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.ballinkit-setup-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Media Uploader for Logos */
.ballinkit-media-uploader {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.ballinkit-media-preview {
    width: 120px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px 8px;
}

.ballinkit-media-preview.dark-bg {
    background: #0f172a;
}

.ballinkit-media-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ballinkit-btn-remove-logo {
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

.ballinkit-btn-remove-logo:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}
