/* Legacy reset modal styles */
    #resetModal:not(.se-modal) {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
        }

        #resetModal:not(.se-modal) .modal-content {
            background-color: #fffdf9;
            margin: 10% auto;
            padding: 25px;
            border: 1px solid rgba(126, 119, 109, 0.16);
            width: 90%;
            max-width: 450px;
            border-radius: 24px;
            box-shadow: 0 24px 60px rgba(40, 35, 29, 0.22);
        }

        #resetModal:not(.se-modal) .close {
            color: #777;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
        }

            #resetModal:not(.se-modal) .close:hover, #resetModal:not(.se-modal) .close:focus {
                color: #333;
                text-decoration: none;
            }

        /* Form styling */
        #resetModal:not(.se-modal) .form-group {
            margin-bottom: 20px;
        }

            #resetModal:not(.se-modal) .form-group label {
                display: block;
                margin-bottom: 8px;
                font-weight: 500;
            }

            #resetModal:not(.se-modal) .form-group input {
                width: 100%;
                padding: 10px;
                border: 1px solid #c8c1b8;
                border-radius: 12px;
                background: #fffdfa;
                font-size: 16px;
                box-sizing: border-box;
            }

        #resetModal:not(.se-modal) button {
            background: linear-gradient(180deg, #5b7280, #4f6572);
            color: white;
            border: none;
            padding: 10px 22px;
            border-radius: 999px;
            box-shadow: 0 10px 22px rgba(79, 101, 114, 0.3);
            cursor: pointer;
            font-size: 16px;
            font-weight: 700;
            transition: background-color 0.3s;
            position: relative;
        }

            #resetModal:not(.se-modal) button:hover {
                background: linear-gradient(180deg, #637a88, #56707e);
            }

            #resetModal:not(.se-modal) button:disabled {
                background: #9db0ba;
                box-shadow: none;
                cursor: not-allowed;
            }

        /* Spinner for loading state */
        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-left: 8px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Message styling */
        .message {
            padding: 12px;
            margin-top: 20px;
            border-radius: 4px;
        }

            .message.success {
                background-color: #d4edda;
                color: #155724;
                border: 1px solid #c3e6cb;
            }

            .message.error {
                background-color: #f8d7da;
                color: #721c24;
                border: 1px solid #f5c6cb;
            }

            .message.info {
                background-color: #d1ecf1;
                color: #0c5460;
                border: 1px solid #bee5eb;
            }

        /* Container styling */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Helper for visually hiding elements but keeping them accessible */
        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        .se-modal .modal-dialog {
            margin: 1.25rem auto;
        }

        .se-modal {
            padding-right: 0 !important;
        }

        .se-modal .modal-content,
        .se-modal-content {
            border: 1px solid rgba(126, 119, 109, 0.16);
            border-radius: 24px;
            background: #fffdf9;
            box-shadow: 0 28px 60px rgba(40, 35, 29, 0.24);
            overflow: hidden;
        }

        .se-modal .modal-header,
        .se-modal-header {
            align-items: flex-start;
            gap: 1rem;
            padding: 1.35rem 1.35rem 1rem;
            border-bottom: 1px solid rgba(126, 119, 109, 0.16);
        }

        .se-modal-heading {
            min-width: 0;
        }

        .se-modal-kicker {
            margin-bottom: 0.45rem;
            font-size: 0.75rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            font-weight: 700;
            color: #4f6572;
        }

        .se-modal-title {
            margin: 0;
            font-family: "Segoe UI", Arial, Helvetica, sans-serif;
            font-size: 1.6rem;
            font-weight: 750;
            line-height: 1.15;
            letter-spacing: -0.02em;
            color: #3f372f;
        }

        .se-modal-subtitle {
            margin: 0.65rem 0 0;
            color: #6f675f;
            line-height: 1.6;
        }

        .se-modal .modal-body,
        .se-modal-body {
            position: relative;
            padding: 1.35rem;
        }

        .se-modal-close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            padding: 0;
            margin: 0;
            border-radius: 999px;
            background: #fff;
            border: 1.5px solid rgba(79, 101, 114, 0.35);
            color: #4f6572;
            opacity: 1;
            flex-shrink: 0;
        }

        .se-modal-close span {
            display: inline-block;
            font-size: 1.4rem;
            font-weight: 700;
            line-height: 1;
        }

        .se-modal-close:hover,
        .se-modal-close:focus {
            background: #e7eef2;
            border-color: rgba(79, 101, 114, 0.5);
            color: #2f2923;
            opacity: 1;
        }

        .se-modal .modal-dialog-scrollable .modal-body {
            overflow-y: auto;
        }

        .se-modal-dialog--content {
            width: min(720px, calc(100vw - 2rem));
            max-width: 720px;
        }

        .se-modal-dialog--wide {
            width: min(1100px, calc(100vw - 2rem));
            max-width: 1100px;
        }

        @media (max-width: 767px) {
            .se-modal .modal-dialog {
                margin: 0.75rem;
            }

            .se-modal .modal-content,
            .se-modal-content {
                border-radius: 22px;
            }

            .se-modal .modal-header,
            .se-modal-header,
            .se-modal .modal-body,
            .se-modal-body {
                padding: 1rem;
            }

            .se-modal-title {
                font-size: 1.5rem;
            }
        }