/* Global Font & Reset for Wrapper */
.imagprfo-settings-wrap {
    font-family: 'Poppins', sans-serif;
    color: #3c434a;
}

.imagprfo-settings-wrap h1 {
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 24px;
}

/* Container */
.imagprfo-settings-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Cards */
.imagprfo-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imagprfo-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

.imagprfo-analytics-card {
    flex: 2;
    min-width: 450px;
}

.imagprfo-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
}

/* Headings */
.imagprfo-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #2c3338;
}

.imagprfo-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #1d2327;
}

.imagprfo-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #646970;
}

.imagprfo-sidebar-desc {
    font-size: 13px;
    color: #646970;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f1;
}

/* Icons */
.imagprfo-card .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #2271b1; 
}

/* Tracking List */
.imagprfo-tracking-list {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.imagprfo-tracking-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #50575d;
    font-size: 14px;
    font-weight: 400;
}

.imagprfo-tracking-list li .dashicons {
    color: #00ba37; /* Fresh green */
    margin-right: 12px;
    background: #e7f7ed;
    border-radius: 50%;
    padding: 2px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notice Info */
.imagprfo-notice-info {
    background: #f0f6fc;
    border: 1px solid #cce5ff;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #1d2327;
    font-size: 13px;
    line-height: 1.5;
}

.imagprfo-notice-info .dashicons {
    color: #2271b1;
    font-size: 20px;
    margin-top: 0px;
}

/* Actions Section */
.imagprfo-actions {
    border-top: 1px solid #f0f0f1;
    padding-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.imagprfo-status-label {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: #2c3338;
}

/* Status Badge */
.imagprfo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-right: auto;
}

.imagprfo-status-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: inherit;
}

.imagprfo-status-badge.enabled {
    background-color: #6c5ce7;
    color: #fff;
    border: 1px solid #6c5ce7;
}

.imagprfo-status-badge.disabled {
    background-color: #fcebeb;
    color: #d63638;
    border: 1px solid #f9d3d3;
}

/* Buttons */
.imagprfo-buttons {
    display: flex;
    gap: 12px;
}

.imagprfo-buttons .button {
    height: auto;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.imagprfo-buttons .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: inherit;
    margin-top: -1px; /* Align checkmark */
}

/* Primary Purple Button Style */
.imagprfo-enable-tracking, .imagprfo-button-purple {
    background: #6c5ce7 !important; /* Vivid Purple */
    border-color: #6c5ce7 !important;
    color: #fff !important;
}

.imagprfo-enable-tracking:hover, .imagprfo-button-purple:hover {
    background: #5b4cc4 !important;
    border-color: #5b4cc4 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.imagprfo-enable-tracking:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.imagprfo-buttons .button-secondary {
    background: #fff;
    color: #999;
    border: 1px solid #ddd;
}

.imagprfo-buttons .button-secondary:hover {
    background: #fafafa;
    color: #d63638;
    border-color: #d63638;
}

/* Promo Plugin Cards */
.imagprfo-promo-plugin {
    background: #fff;
    border: 1px solid #ddefef; /* Light blueish border like screenshot */
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.imagprfo-promo-plugin:last-child {
    margin-bottom: 0px;
}

.imagprfo-promo-plugin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.imagprfo-promo-speedy {
    border-color: #e2e4ff; /* Slight purple tint */
    background: #fdfdff;
}

/* Images/Icons */
.imagprfo-promo-icon-img {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.imagprfo-promo-icon-img img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px; /* Slight rounding on icon */
}

/* Re-add alert badge positioning relative to image wrapper */
.imagprfo-alert-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #e74c3c;
    color: white;
    font-weight: bold;
    font-size: 14px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border: 2px solid white;
}


.imagprfo-promo-plugin h4 {
    margin: 5px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #2c3338;
}

/* Badges */
.imagprfo-badge {
    display: inline-block;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1;
}

.imagprfo-badge-free {
    background: #f0f2f5;
    color: #646970;
}

.imagprfo-badge-featured {
    background: #8e44ad;
    background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
    color: white;
}

.imagprfo-promo-plugin p {
    font-size: 13px;
    margin-bottom: 20px;
    color: #646970;
    line-height: 1.5;
}

/* Button override for promo */
.imagprfo-promo-plugin .button-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}

/* Spinner */
.imagprfo-actions .spinner {
    float: none;
    margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .imagprfo-settings-container {
        flex-direction: column;
    }
    .imagprfo-analytics-card, .imagprfo-sidebar {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    
    .imagprfo-status-badge {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .imagprfo-actions {
        justify-content: flex-start;
    }
}
