<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RenameDocumentWindow.aspx.cs" Inherits="PDI.Web.RenameDocumentWindow" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Renombrar Documento</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
    <style>
        body, html {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 14px;
            margin: 0;
            padding: 0;
            background-color: #fafafa;
            color: #333;
            overflow: hidden;
        }

        .window-container {
            padding: 16px 20px;
        }

        .input-group {
            margin-bottom: 10px;
        }

        .input-group label {
            display: block;
            margin-bottom: 4px;
            font-weight: 600;
            font-size: 0.85rem;
            color: #555;
        }

        input[type="text"] {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 0.9rem;
            font-family: inherit;
            background: #fff;
            color: #333;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }

        input[type="text"]:focus {
            border-color: #6D214F;
            outline: none;
        }

        input[type="submit"] {
            width: 100%;
            padding: 8px 16px;
            background: transparent;
            color: #6D214F;
            border: 1.5px solid #6D214F;
            border-radius: 5px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
            margin-top: 6px;
        }

        input[type="submit"]:hover {
            background: #6D214F;
            color: #fff;
        }

        .status-label {
            display: block;
            margin-top: 8px;
            font-size: 0.85rem;
            font-style: italic;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="window-container">
            <div class="input-group">
                <label>Nombre del archivo:</label>
                <asp:TextBox ID="txtUserFilename" runat="server" Width="100%" />
            </div>
            <asp:Button ID="btnSave" runat="server" Text="Guardar" OnClick="btnSave_Click" Width="100%" />
            <asp:Label ID="lblStatus" runat="server" CssClass="status-label" ForeColor="RoyalBlue" />
        </div>
        <script type="text/javascript">
            function closeWindow() {
                if (window.parent && window.parent.PDIModal) window.parent.PDIModal.closeFromChild();
            }
        </script>
    </form>
</body>
</html>