.em-predictor-container {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.em-prediction {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #2ecc71;
}

.em-number, .em-star {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    margin: 0 5px;
    border-radius: 50%;
    font-weight: bold;
}

.em-number {
    background: #3498db;
    color: white;
}

.em-star {
    background: #f39c12;
    color: white;
}

.em-subscribe-button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.em-subscribe-button:hover {
    background: #27ae60;
}

.em-subscribe-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.em-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.em-modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.em-close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.em-subscribe-button .em-spinner {
    display: none;
}

.em-subscribe-button.loading .em-button-text {
    display: none;
}

.em-subscribe-button.loading .em-spinner {
    display: inline-block;
}

.success { color: #2ecc71; }
.error { color: #e74c3c; }
.warning { color: #f39c12; }
.info { color: #3498db; }

add_filter('onesignal_send_notification', 'schedule_recurring_notifications', 10, 4);

function schedule_recurring_notifications($fields, $new_status, $old_status, $post) {
  // Set up scheduled delivery for Monday and Thursday at 15:00
  $current_day = date('l');
  $current_time = date('H:i');
  
  if (($current_day == 'Monday' || $current_day == 'Thursday') && $current_time == '15:00') {
    // Allow notification to send at scheduled time
    return $fields;
  } else {
    // Cancel notification - will not send
    return false;
  }
}