<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('tenant_settings', function (Blueprint $table) {
            // Background color of the branding panel on the tenant's own
            // login/auth pages (AuthSimpleLayout) — distinct from theme_primary
            // since a tenant may want a different accent for buttons/links than
            // for this large decorative panel. Null falls back to the platform
            // default (slate-900) — see useBranding().
            $table->string('branding_panel_color', 20)->nullable()->after('branding_login_subtitle');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('tenant_settings', function (Blueprint $table) {
            $table->dropColumn('branding_panel_color');
        });
    }
};
