<?php
$file = 'admin.php';
$content = file_get_contents($file);

$css = "
        /* Multi-select dropdown */
        .ms-container { position: relative; width: 100%; }
        .ms-display { 
            background: #0f172a; border: 1px solid #334155; color: #fff; padding: 8px; cursor: pointer; min-height: 34px; box-sizing: border-box; font-size: 12px; display: flex; align-items: center; justify-content: space-between;
        }
        .ms-display:after { content: '▼'; font-size: 8px; color: #8c92a3; }
        .ms-dropdown { 
            position: absolute; top: 100%; left: 0; right: 0; background: #1a202c; border: 1px solid #334155; z-index: 1000; display: none; max-height: 200px; overflow-y: auto; padding: 5px;
        }
        .ms-item { padding: 5px 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 11px; }
        .ms-item:hover { background: #2d3545; }
        .ms-item input { width: auto !important; }
    </style>";

$content = str_replace('    </style>', $css, $content);

file_put_contents($file, $content);
echo "CSS patched";
?>
