<?php include 'header.php'; ?>

<form action="../settings_process.php" method="POST" enctype="multipart/form-data">
    <div class="control-box">
        <h4 style="color:var(--accent); margin-top:0;"><i class="fas fa- bell"></i> POP-UP NOTICE</h4>
        <label>Status</label>
        <select name="popup_status">
            <option value="1" <?=$theme['popup_status']==1?'selected':''?>>Enabled</option>
            <option value="0" <?=$theme['popup_status']==0?'selected':''?>>Disabled</option>
        </select>

        <label>Style</label>
        <select name="popup_style">
            <option value="style1" <?=$theme['popup_style']=='style1'?'selected':''?>>Classic Dark</option>
            <option value="style2" <?=$theme['popup_style']=='style2'?'selected':''?>>Rounded Glass</option>
            <option value="style3" <?=$theme['popup_style']=='style3'?'selected':''?>>Neon Border</option>
            <option value="style4" <?=$theme['popup_style']=='style4'?'selected':''?>>Top Slide</option>
            <option value="style5" <?=$theme['popup_style']=='style5'?'selected':''?>>Modern Minimal</option>
        </select>

        <label>Countdown (Seconds)</label>
        <input type="number" name="popup_timer" value="<?= $theme['popup_timer'] ?>">

        <label>Notice Title</label>
        <input type="text" name="popup_title" value="<?= htmlspecialchars($theme['popup_title']) ?>">

        <label>Notice Content</label>
        <textarea name="popup_text" rows="3"><?= htmlspecialchars($theme['popup_text']) ?></textarea>

        <label>Notice Image</label>
        <input type="file" name="popup_image">
        <small style="color:#888;">Current: <?= $theme['popup_image'] ?></small>

        <label>Button Name</label>
        <input type="text" name="popup_btn_name" value="<?= htmlspecialchars($theme['popup_btn_name']) ?>">

        <label>Button Link</label>
        <input type="text" name="popup_link" value="<?= htmlspecialchars($theme['popup_link']) ?>">

        <label>Show Button?</label>
        <select name="popup_btn_status">
            <option value="1" <?=$theme['popup_btn_status']==1?'selected':''?>>Yes</option>
            <option value="0" <?=$theme['popup_btn_status']==0?'selected':''?>>No</option>
        </select>
    </div>

    <div class="control-box">
        <h4 style="color:var(--accent); margin-top:0;"><i class="fas fa-bullhorn"></i> INLINE MAIN NOTICE</h4>
        <label>Status</label>
        <select name="inline_notice_status">
            <option value="1" <?=$theme['inline_notice_status']==1?'selected':''?>>Enabled</option>
            <option value="0" <?=$theme['inline_notice_status']==0?'selected':''?>>Disabled</option>
        </select>

        <label>Notice Text</label>
        <input type="text" name="inline_notice_text" value="<?= htmlspecialchars($theme['inline_notice_text']) ?>">

        <div style="display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px;">
            <div>
                <label>BG Color</label>
                <input type="color" name="inline_bg_color" value="<?= $theme['inline_bg_color'] ?>">
            </div>
            <div>
                <label>Text Color</label>
                <input type="color" name="inline_text_color" value="<?= $theme['inline_text_color'] ?>">
            </div>
            <div>
                <label>Border Color</label>
                <input type="color" name="inline_border_color" value="<?= $theme['inline_border_color'] ?>">
            </div>
        </div>
    </div>
    
    <button class="btn" name="update_settings">SAVE NOTICES</button>
</form>

<?php include 'footer.php'; ?>