/* APM Frontend Widget Styles */
.apm-campaign-widget {
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.apm-campaign-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.apm-progress-container {
    margin-bottom: 20px;
}

.apm-progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.apm-progress-bar-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.5s ease-out;
}

.apm-progress-text {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
}

/* Counter Widget */
.apm-counter-widget {
    text-align: center;
    padding: 20px;
}

.apm-counter-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.apm-counter-label {
    display: block;
    font-size: 1rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Petition Form Widget */
.apm-petition-form-container {
    padding: 25px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.apm-form-field {
    margin-bottom: 15px;
}

.apm-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.apm-form-field input,
.apm-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.apm-form-submit {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.apm-form-submit:hover {
    opacity: 0.9;
}

.apm-form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.apm-form-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.apm-form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}
