     .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);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 20px;
            border: 1px solid #888;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            width: fit-content;
        }
        .close-area{
            text-align: right;
        }
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .modal-header h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2937;
        }

        .close-button {
            color: #aaa;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
        }

        .close-button:hover,
        .close-button:focus {
            color: #000;
            text-decoration: none;
        }

        #name-list {
            margin-bottom: 1rem;
            width: 100%;
        }

        #name-list td:first-child {
            width: 120px;
            text-align: right;
            padding-right: 0.5rem;
            font-weight: 500;
            color: #374151;
            white-space: nowrap;
        }

        #name-list td:nth-child(2) {
            padding-left: 0;
            white-space: nowrap;
        }

        #name-list input {
            width: 100px;
            padding: 0.5rem;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            box-shadow: inset 0 1px 3px 0 rgba(0, 0, 0, 0.06);
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }

        #name-list input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .modal-footer {
           /* display: flex;
            justify-content: center;  Center the buttons */
            text-align: center;
            margin-top: 1rem;
        }

        .modal-footer button {
            margin: 0; /* Ensure no margin on buttons */
        }

        .update-button, .submit-button {
            padding: 0.75rem 1.5rem;
            border-radius: 0.375rem;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
            box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
        }

        .update-button {
            background-color: #f59e0b;
            color: white;
        }
        .update-button:hover {
             background-color: #d97706;
            transform: scale(1.05);
        }

        .submit-button {
            background-color: #3b82f6;
            color: white;
        }

        .submit-button:hover {
            background-color: #2563eb;
            transform: scale(1.05);
        }

        .error-message {
            color: #dc2626;
            font-size: 0.875rem;
            margin-top: 0.5rem;
            padding: 0.5rem;
            background-color: #fee2e2;
            border-radius: 0.375rem;
            border: 1px solid #fecaca;
        }