/* Popups for Contact Form 7 - Admin UI */

.pcf7p-admin-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
    max-width: 100%;
    margin-top: 20px;
}

/* Header */
.pcf7p-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.pcf7p-header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pcf7p-header-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.pcf7p-header-title h1 span {
    font-size: 14px;
    background: #2271b1;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
}

/* Status Badge */
.pcf7p-status-badge {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}
.pcf7p-status-badge.active { background: #e8f5e9; color: #2e7d32; }
.pcf7p-status-badge.inactive { background: #ffebee; color: #c62828; }

/* Dashboard Grid */
.pcf7p-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Cards */
.pcf7p-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.pcf7p-card-title {
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

.pcf7p-card-content {
    padding: 25px 20px;
}

/* Form Elements */
.pcf7p-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pcf7p-form-group {
    margin-bottom: 20px;
}

.pcf7p-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.pcf7p-form-group select,
.pcf7p-form-group input[type="text"],
.pcf7p-form-group input[type="number"] {
    width: 100%;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: none;
    transition: 0.2s;
}

.pcf7p-form-group select:focus,
.pcf7p-form-group input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.pcf7p-help-text {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-top: 5px;
    font-style: italic;
}

/* Custom iOS Style Switch (Checkbox) */
.pcf7p-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.pcf7p-switch input { opacity: 0; width: 0; height: 0; }
.pcf7p-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.pcf7p-slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.pcf7p-switch input:checked + .pcf7p-slider { background-color: #2196F3; }
.pcf7p-switch input:checked + .pcf7p-slider:before { transform: translateX(26px); }

/* Save Bar */
.pcf7p-save-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    text-align: right;
}

.pcf7p-save-btn {
    padding: 10px 30px !important;
    font-size: 16px !important;
    height: auto !important;
}

/* Analytics Column */
.pcf7p-analytics-card .pcf7p-card-content { padding: 0; }

.pcf7p-stat-box {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.pcf7p-stat-info { display: flex; flex-direction: column; }
.pcf7p-stat-label { font-size: 13px; color: #646970; margin-bottom: 5px; }
.pcf7p-stat-value { font-size: 28px; font-weight: 700; color: #1d2327; line-height: 1; }

/* Responsive */
@media screen and (max-width: 900px) {
    .pcf7p-dashboard-grid { grid-template-columns: 1fr; }
    .pcf7p-grid-2 { grid-template-columns: 1fr; }
}