/**
 * Pushinator Admin Styles
 */

/* Page Header with Logo */
.pushinator-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pushinator-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.pushinator-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pushinator-header h1 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

/* Dashboard Cards */
.pushinator-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pushinator-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.pushinator-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #1d2327;
}

.pushinator-card-value {
    font-size: 36px;
    font-weight: 600;
    color: #2271b1;
    margin-bottom: 10px;
}

.pushinator-card a {
    text-decoration: none;
    font-size: 13px;
}

.pushinator-card-success .pushinator-card-value {
    color: #00a32a;
}

.pushinator-card-error .pushinator-card-value {
    color: #d63638;
}

/* Events Grid */
.pushinator-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pushinator-event-group {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 15px;
}

.pushinator-event-group h4 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #c3c4c7;
    font-size: 14px;
    color: #1d2327;
}

.pushinator-event-group.pushinator-group-disabled {
    opacity: 0.6;
}

.pushinator-event-group.pushinator-group-disabled h4 {
    color: #646970;
}

.pushinator-woo-notice {
    font-weight: normal;
    font-size: 12px;
    color: #d63638;
}

.pushinator-event-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pushinator-event-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.pushinator-event-label:hover {
    color: #2271b1;
}

.pushinator-event-label input[type="checkbox"] {
    margin: 0;
}

/* Status Badges */
.pushinator-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.pushinator-status-success {
    background: #d4edda;
    color: #155724;
}

.pushinator-status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Filters */
.pushinator-filters {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
}

.pushinator-filters select {
    min-width: 150px;
}

/* Log Content Column */
.pushinator-log-content {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Table Improvements */
.pushinator-wrap .wp-list-table code {
    font-size: 12px;
    padding: 2px 6px;
    background: #f0f0f1;
    border-radius: 3px;
}

/* Channel Form */
.pushinator-wrap .form-table th {
    width: 200px;
}

.pushinator-wrap .form-table input[type="text"],
.pushinator-wrap .form-table input[type="password"] {
    width: 350px;
}

/* Delete confirmation highlight */
.pushinator-delete-link:hover {
    text-decoration: underline;
}

/* Test notification button */
.pushinator-test-notification {
    cursor: pointer;
}

.pushinator-test-notification.pushinator-sending {
    color: #646970 !important;
    cursor: wait;
}

/* Toggle token button */
.pushinator-toggle-token {
    margin-left: 5px !important;
}

/* Getting Started Section */
.pushinator-getting-started {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 25px;
}

.pushinator-getting-started h2 {
    margin: 0 0 20px;
    padding: 0;
    font-size: 18px;
    color: #1d2327;
}

.pushinator-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pushinator-step {
    background: #f6f7f7;
    border-radius: 4px;
    padding: 20px;
    position: relative;
}

.pushinator-step-number {
    width: 32px;
    height: 32px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}

.pushinator-step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #1d2327;
}

.pushinator-step p {
    margin: 0;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
}

.pushinator-apps {
    border-top: 1px solid #c3c4c7;
    padding-top: 20px;
}

.pushinator-apps h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #1d2327;
}

.pushinator-apps > p {
    margin: 0 0 15px;
    color: #50575e;
    font-size: 13px;
}

.pushinator-app-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pushinator-app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s;
}

.pushinator-app-link:hover {
    background: #135e96;
    color: #fff;
}

.pushinator-app-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .pushinator-dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }

    .pushinator-events-grid {
        grid-template-columns: 1fr;
    }

    .pushinator-wrap .form-table th {
        width: auto;
    }

    .pushinator-wrap .form-table input[type="text"],
    .pushinator-wrap .form-table input[type="password"] {
        width: 100%;
    }

    .pushinator-steps {
        grid-template-columns: 1fr;
    }

    .pushinator-app-links {
        flex-direction: column;
    }

    .pushinator-app-link {
        justify-content: center;
    }
}
